File size: 551 Bytes
d8e3656 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
---
library_name: sklearn
tags:
- sklearn
- tabular-regression
- soma
---
# Modelo de Soma
Modelo de regressão linear simples que soma dois números: x1 + x2 = y
## Como usar
```python
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.]
```
|