Intermediate Predictive Analytics in Python
Nele Verbiest
Senior Data Scientist @PythonPredictions

Průměrný počet darů

Průměrná výše daru




gifts.groupby("month")["amount"].mean()
gifts.groupby("month").size()

Časová osa modelu: květen 2018
logreg = linear_model.LogisticRegression() logreg.fit(X_may2018, y_may2018)predictions = logreg.predict_proba(X_jan2019)[:,1] auc = roc_auc_score(y_jan2019, predictions) print(round(auc,2))
0.53
Časová osa modelu: leden 2018
logreg = linear_model.LogisticRegression() logreg.fit(X_jan2018, y_jan2018)predictions = logreg.predict_proba(X_jan2019)[:,1] auc = roc_auc_score(y_jan2019, predictions) print(round(auc,2))
0.56
Intermediate Predictive Analytics in Python