Views
No views yet
| Métrica | Valor |
|---|---|
| Recall(churn) | 0.6786 |
| F1 (weighted) | 0.7673 |
| ROC-AUC | 0.8210 |
| Accuracy | 0.7592 |
1import joblib, pandas as pd
2from huggingface_hub import hf_hub_download
3
4model_path = hf_hub_download(repo_id="RafaelPrime/telecom-churn-random_forest", filename="random_forest.joblib")
5prep_path = hf_hub_download(repo_id="RafaelPrime/telecom-churn-random_forest", filename="preprocessor.joblib")
6
7model = joblib.load(model_path)
8preprocessor = joblib.load(prep_path)
9
10# X_raw: DataFrame com as colunas originais do dataset
11X_proc = preprocessor.transform(X_raw)
12pred = model.predict(X_proc)