Machine Learning, Learning, Python3, Linear Regression, Math.
= np.array([[0.5], [1.5]]) predictions = model.predict(X_test) print("Predictions:", predictions) # Evaluation mse = mean_squared_error(y, model.predict(X)) rmse = root_mean_squared_error(y, model.predict(X)) mae = mean_absolute_error(y, model.predict(X)) print("Mean Squared Error:", mse)