Instructions to use claudiogbarreto/modelo-soma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use claudiogbarreto/modelo-soma with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("claudiogbarreto/modelo-soma", "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
Modelo de Soma
Modelo de regressão linear simples que soma dois números: x1 + x2 = y
Como usar
from huggingface_hub import hf_hub_download
from skops.io import load
import numpy as np
# Baixar modelo
model_path = hf_hub_download(
repo_id="seu_usuario/modelo-soma",
filename="model.skops"
)
# Carregar
model = load(model_path, trusted=True)
# Usar
resultado = model.predict([[10, 20]])
print(resultado) # [30.]
- Downloads last month
- -