Downloads · 30 days
0
maitelizarraga/rea-knn
rea-knn is a tabular regression model from maitelizarraga. Use it for the tabular regression task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Sep 4, 2024
Repo size
86.8 KB
Likes
0
Public
Click a slice to open those files.
.joblib86.8 KB · 97%
From the Hugging Face model README
import json
import joblib
import pandas as pd
model = joblib.load('model.joblib')
config = json.load(open('config.json'))
features = config['features']
# data = pd.read_csv("data.csv")
data = data[features]
predictions = model.predict(data) # or model.predict_proba(data)
# predictions can be converted to original labels using label_encoders.pkl