Machine Learning, Regression, Classification, Scikit Learn, Artificial Intelligence.
outliers way, way out there… Let’s run both algorithms again now. X_train, X_test, y_train, y_test = train_test_split(X, y) lin = LinearRegression().fit(X_train, y_train) pred = lin.predict(X_test) pred = np.where(pred < 0.5, 0, 1) acc_lin = accuracy_score(y_test, pred) print(acc_lin) 0.487 logi =