Predicción del CTR con Machine Learning en Python
Kevin Huo
Instructor

clf = LogisticRegression()fit() que recibe X_train, y_train: clf.fit(X_train, y_train)X_train es el vector de atributos de entrenamiento; y_train, el vector de objetivospredict(), que recibe X_test y genera y_test así:array([0, 1, 1, ..., 1, 0, 1])
predict_proba() produce probabilidadesarray([0.2, 0.8], [0.4, 0.6] ..., [0.1, 0.9] [0.3, 0.7]])
accuracy_score(y_test, y_pred)Predicción del CTR con Machine Learning en Python