Tabular Regression
Scikit-learn
Spanish
machine-learning
regression
linear-regression
educational-example
skops
Instructions to use amandaodoo/casas-sklearn-exportar-skops with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use amandaodoo/casas-sklearn-exportar-skops with Scikit-learn:
# ⚠️ Model filename not specified in config.json
- Notebooks
- Google Colab
- Kaggle
File size: 537 Bytes
0a73f52 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """Exporta el modelo de scikit-learn en formato skops: model.skops.
No vuelve a entrenar: parte de ../sklearn-entrenamiento-evaluacion/model.joblib
(correr antes ese train.py).
Uso:
python exportar.py
"""
from pathlib import Path
import joblib
import skops.io as sio
CARPETA = Path(__file__).parent
modelo = joblib.load(CARPETA.parent / "sklearn-entrenamiento-evaluacion" / "model.joblib")
sio.dump(modelo, CARPETA / "model.skops") # guarda el objeto sin usar pickle
print("Modelo guardado en model.skops")
|