No project description provided
Project description
Meoinfo
Install
pip install meoinfo
How to use
from meoinfo.core import Meoinfo
import pandas as pd
from pathlib import Path
p = Path('..')
df_train = pd.read_csv(p/'datasets/churn_train.csv')
df_test = pd.read_csv(p/'datasets/churn_test.csv')
df_oot = pd.read_csv(p/'datasets/churn_oot.csv')
experiment = Meoinfo(
train_data=df_train,
test_data=df_test,
oot_data=df_oot,
baseline_y_true_name='Churn',
baseline_y_prob_name='y_prob',
features=df_train.drop('Churn', axis=1).columns.tolist()
)
experiment.train_data.head()
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
gender | SeniorCitizen | Partner | Dependents | tenure | PhoneService | MultipleLines | InternetService | OnlineSecurity | OnlineBackup | DeviceProtection | TechSupport | StreamingTV | StreamingMovies | Contract | PaperlessBilling | PaymentMethod | MonthlyCharges | TotalCharges | Churn | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | Male | 1 | Yes | No | 72 | Yes | Yes | DSL | No | No | Yes | No | Yes | Yes | Two year | Yes | Credit card (automatic) | 73.45 | 5329 | No |
1 | Male | 0 | No | No | 9 | Yes | No | No | No internet service | No internet service | No internet service | No internet service | No internet service | No internet service | Month-to-month | No | Mailed check | 20.25 | 178.5 | Yes |
2 | Male | 0 | No | No | 69 | Yes | Yes | DSL | Yes | Yes | Yes | Yes | Yes | Yes | Two year | No | Mailed check | 90.65 | 6322.1 | No |
3 | Male | 0 | No | No | 2 | Yes | No | DSL | No | Yes | No | No | No | No | Month-to-month | Yes | Mailed check | 50.30 | 92.75 | No |
4 | Male | 0 | No | No | 7 | Yes | No | DSL | No | No | No | No | Yes | No | Month-to-month | No | Mailed check | 54.85 | 370.4 | No |
experiment.algorithm
'catboost'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
meoinfo-0.0.4.tar.gz
(8.7 kB
view hashes)