Commit 54627ed
committed
Fix MLflow logged-models API compat in pipeline tutorial
The curated sklearn-1.5 environment ships MLflow 2.19+ which uses the
logged-models API not supported by AzureML tracking server, causing
mlflow.sklearn.log_model() and mlflow.register_model() to crash.
- autolog(log_models=False) to prevent autolog hitting the API
- Replace log_model() with save_model + log_artifacts + MlflowClient
registration which use supported endpoints1 parent 50f168d commit 54627ed
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
617 | 621 | | |
618 | 622 | | |
619 | 623 | | |
| |||
946 | 950 | | |
947 | 951 | | |
948 | 952 | | |
949 | | - | |
| 953 | + | |
0 commit comments