Last active
June 27, 2020 20:52
-
-
Save ahmetozlu/c2b901b1b81ffef99cfa3c2aeffe20c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plot actual vs prediction for validation set | |
ValResults = numpy.genfromtxt("valresults.csv", delimiter=",") | |
plt.plot(Y2,ValResults,'ro') | |
plt.title('Validation Set') | |
plt.xlabel('Actual') | |
plt.ylabel('Predicted') | |
# Compute R-Square value for validation set | |
ValR2Value = r2_score(Y2,ValResults) | |
print("Validation Set R-Square=",ValR2Value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment