tensorflow

This commit is contained in:
patrycjalazna 2021-05-06 21:29:58 +02:00
parent 78645d7188
commit 80d599d624

View File

@ -3,6 +3,7 @@ import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
import tensorflow as tf
from tensorflow.keras.layers import Input, Dense, Activation,Dropout
from tensorflow.keras.models import Model
@ -100,5 +101,5 @@ predictions = model.predict(X_test)
pd.DataFrame(predictions).to_csv('prediction_results.csv')
# ewaluacja
# _, accuracy = model.evaluate(y_test, predictions)
# print('Accuracy: %.2f' % (accuracy*100))
error = mean_squared_error(y_test, predictions)
print('Error: ', error)