Skip to content

Instantly share code, notes, and snippets.

@panicpotatoe
Created March 18, 2019 08:26
Show Gist options
  • Select an option

  • Save panicpotatoe/6c7af7b836c79ca90eb79fefb2797bba to your computer and use it in GitHub Desktop.

Select an option

Save panicpotatoe/6c7af7b836c79ca90eb79fefb2797bba 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment