Skip to content

Instantly share code, notes, and snippets.

@FranciscusRenatus
Created June 21, 2017 15:56
Show Gist options
  • Save FranciscusRenatus/8226b9fa0e66e1184c0a6b9d2551ebf6 to your computer and use it in GitHub Desktop.
Save FranciscusRenatus/8226b9fa0e66e1184c0a6b9d2551ebf6 to your computer and use it in GitHub Desktop.
# Fitting Simple 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