YohouPyfuncModel¶
yohou_mlflow.YohouPyfuncModel
¶
The object mlflow.pyfunc.load_model wraps for a yohou model.
Each call works on a copy of the loaded forecaster: it observes y (and the
other frames) when given, then predicts once from the updated state. Nothing a
call changes is visible to the next call.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
forecaster
|
yohou forecaster
|
The loaded, fitted forecaster. |
required |
default_type
|
str
|
|
required |
Source Code ¶
Source code in src/yohou_mlflow/_pyfunc.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | |
Methods ¶
get_raw_model()
¶
predict(model_input, params=None)
¶
Observe the given frames on a copy of the forecaster, then predict once.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
model_input
|
dict of str to polars.DataFrame
|
A subset of |
required |
params
|
mapping or None
|
|
None
|
Returns ¶
| Type | Description |
|---|---|
DataFrame
|
The frame the selected yohou predict method returns. |
Raises ¶
| Type | Description |
|---|---|
ValueError
|
If |