Last active
May 7, 2020 21:03
-
-
Save vicotrbb/63c0273d11df0ab92148e60fedede725 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
train_predict = model.predict(x_train) | |
rmse = np.sqrt(mean_squared_error(y_train, train_predict)) | |
r2 = r2_score(y_train, train_predict) | |
print('Conjunto de treino') | |
print(rmse) | |
print(r2) | |
np.round(train_predict, 0, train_predict) | |
scatter = plt.scatter(x_train['sepal length (cm)'], x_train['sepal width (cm)'], | |
c=train_predict, cmap=plt.cm.Set1, | |
edgecolor='k') | |
plt.legend(*scatter.legend_elements(), | |
loc="lower left", title="Classes") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment