Prevedere il CTR con il Machine Learning in Python
Kevin Huo
Instructor

clf = LogisticRegression()fit() che accetta X_train, y_train: clf.fit(X_train, y_train)X_train è il vettore delle feature di training, y_train quello dei targetpredict() che prende X_test e genera y_test così:array([0, 1, 1, ..., 1, 0, 1])
predict_proba() produce punteggi di probabilitàarray([0.2, 0.8], [0.4, 0.6] ..., [0.1, 0.9] [0.3, 0.7]])
accuracy_score(y_test, y_pred)Prevedere il CTR con il Machine Learning in Python