system's picture
system HF staff
Commit From AutoTrain
0b4ab86
metadata
tags:
  - autotrain
  - tabular
  - classification
  - tabular-classification
datasets:
  - jrosenzw/autotrain-data-diabetes-detection
co2_eq_emissions:
  emissions: 0.8803900471704509

Model Trained Using AutoTrain

  • Problem type: Binary Classification
  • Model ID: 74053139456
  • CO2 Emissions (in grams): 0.8804

Validation Metrics

  • Loss: 0.473
  • Accuracy: 0.760
  • Precision: 0.667
  • Recall: 0.630
  • AUC: 0.835
  • F1: 0.648

Usage

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]
data.columns = ["feat_" + str(col) for col in data.columns]

predictions = model.predict(data)  # or model.predict_proba(data)