CTR-Vorhersage mit Machine Learning in Python
Kevin Huo
Instructor

clf = LogisticRegression()fit()-Methode, die X_train, y_train nimmt: clf.fit(X_train, y_train)X_train sind die Trainingsfeatures, y_train die Trainingstargetspredict()-Methode, die X_test nimmt und ein y_test erzeugt:array([0, 1, 1, ..., 1, 0, 1])
predict_proba() liefert Wahrscheinlichkeitenarray([0.2, 0.8], [0.4, 0.6] ..., [0.1, 0.9] [0.3, 0.7]])
accuracy_score(y_test, y_pred)CTR-Vorhersage mit Machine Learning in Python