Instructions to use scikit-learn/persistence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use scikit-learn/persistence with Scikit-learn:
from skops.hub_utils import download from skops.io import load download("scikit-learn/persistence", "path_to_folder") # make sure model file is in skops format # if model is a pickle file, make sure it's from a source you trust model = load("path_to_folder/pipeline.skops") - Notebooks
- Google Colab
- Kaggle
| { | |
| "sklearn": { | |
| "columns": [ | |
| "cylinders", | |
| "displacement", | |
| "horsepower", | |
| "weight", | |
| "acceleration", | |
| "model year", | |
| "origin" | |
| ], | |
| "environment": [ | |
| "scikit-learn" | |
| ], | |
| "example_input": { | |
| "acceleration": [ | |
| 20.7, | |
| 17.0, | |
| 18.6 | |
| ], | |
| "cylinders": [ | |
| 4, | |
| 4, | |
| 4 | |
| ], | |
| "displacement": [ | |
| 98.0, | |
| 120.0, | |
| 120.0 | |
| ], | |
| "horsepower": [ | |
| "65", | |
| "88", | |
| "79" | |
| ], | |
| "model year": [ | |
| 81, | |
| 75, | |
| 82 | |
| ], | |
| "origin": [ | |
| 1, | |
| 2, | |
| 1 | |
| ], | |
| "weight": [ | |
| 2380, | |
| 2957, | |
| 2625 | |
| ] | |
| }, | |
| "model": { | |
| "file": "pipeline.skops" | |
| }, | |
| "task": "tabular-regression" | |
| } | |
| } |