Python 중급 예측 분석
Nele Verbiest
Senior Data Scientist @PythonPredictions

평균 기부 횟수

평균 기부 금액




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

모델 타임라인: 2018년 5월
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
모델 타임라인: 2018년 1월
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
Python 중급 예측 분석