Skip to content

Commit

Permalink
final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh147 committed Jan 11, 2018
1 parent f167d91 commit 906aa83
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions Simple_Linear_Regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
from sklearn.model_selection import train_test_split
X_Train, X_Test, Y_Train, Y_Test = train_test_split(X, Y, test_size = 1/3, random_state = 0)

# Feature Scaling

"""from sklearn.preprocessing import StandardScaler
sc_X = StandardScaler()
X_Train = sc_X.fit_transform(X_Train)
X_Test = sc_X.transform(X_Test)
"""

# Fitting Simple Linear Regression to the training set

from sklearn.linear_model import LinearRegression
Expand Down Expand Up @@ -52,27 +44,4 @@
plt.title('Salary vs Experience (Training Set)')
plt.xlabel('Years of experience')
plt.ylabel('Salary')
plt.show()






















plt.show()

0 comments on commit 906aa83

Please sign in to comment.