Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Simple_Linear_Regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

Y_Pred = regressor.predict(X_Test)

# Showing accuracy of the model

acc = regressor.score(X_Test, Y_Test)
print(acc)

# Visualising the Training set results

Expand All @@ -44,4 +48,4 @@
plt.title('Salary vs Experience (Training Set)')
plt.xlabel('Years of experience')
plt.ylabel('Salary')
plt.show()
plt.show()