Downloads · 30 days
0
as-cle-bert/carbon-footprint-prediction
carbon-footprint-prediction is a tabular regression model from as-cle-bert. 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 Apr 14, 2024
Repo size
11.9 MB
Likes
1
Public
Click a slice to open those files.
.joblib11.9 MB · 100%
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