Prevendo CTR com Machine Learning em Python
Kevin Huo
Instructor

clf = LogisticRegression()fit(), que recebe X_train, y_train: clf.fit(X_train, y_train)X_train é o vetor de features; y_train é o vetor de rótulospredict(), que recebe X_test e gera y_test:array([0, 1, 1, ..., 1, 0, 1])
predict_proba() produz escores de probabilidadearray([0.2, 0.8], [0.4, 0.6] ..., [0.1, 0.9] [0.3, 0.7]])
accuracy_score(y_test, y_pred)Prevendo CTR com Machine Learning em Python