Run this model with HF Jobs
Run scikit-learn-examples/example on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/scikit-learn-examples/example. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/scikit-learn-examples/example on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use scikit-learn-examples/example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use scikit-learn-examples/example with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("scikit-learn-examples/example", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Download class_definitions.py from scikit-learn-examples/example: direct link, hf CLI and curl.
- Browser
- Download file 123 Bytes
-
https://huggingface.co/scikit-learn-examples/example/resolve/main/class_definitions.py
- Command line
-
hf download hf://scikit-learn-examples/example/class_definitions.py
-
curl -L -o class_definitions.py https://huggingface.co/scikit-learn-examples/example/resolve/main/class_definitions.py
123 Bytes
| from sklearn.pipeline import Pipeline | |
| class MyPipeline(Pipeline): | |
| def __init__(self, steps): | |
| super().__init__(steps) |