Instructions to use BenjaminB/plain-sklearn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use BenjaminB/plain-sklearn with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("BenjaminB/plain-sklearn", "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
metadata
license: bsd-3-clause
tags:
- sklearn
datasets:
- synthetic dataset from sklearn
metrics:
- type: accuracy
value: 0.948
Simple example using plain scikit-learn
Reproducing the model
Inside a Python environment, install the dependencies listed in requirements.txt and then run:
python train.py
The resulting model artifact should be stored in model.pickle.
The model
The used model is a simple logistic regression trained through gradient descent.
Intended use & limitations
This model is just for demonstration purposes and should thus not be used.
Dataset
The dataset is entirely synthetic and has no real world origin.