Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FranciscusRenatus/04db29d235ac76f5a8f2de0808e66435 to your computer and use it in GitHub Desktop.
Save FranciscusRenatus/04db29d235ac76f5a8f2de0808e66435 to your computer and use it in GitHub Desktop.
# Fitting Multiple Linear Regression to the Training set
from sklearn.linear_model import LinearRegression
regressor = LinearRegression()
regressor.fit(X_train, y_train)
# Predicting the Test set results
y_pred = regressor.predict(X_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment