mattia33011's picture
fix: refactor local folders
f863b58
raw
history blame contribute delete
443 Bytes
import tensorflow as tf
import numpy as np
(x_train,y_train),(x_test,y_test) = tf.keras.datasets.fashion_mnist.load_data()
X_test = x_test/255.0
model = tf.keras.models.load_model('my_models/fashion_model.keras')
model.evaluate(X_test, y_test)
y_pred = model.predict(X_test)
y_pred = np.argmax(y_pred, axis=1)
from sklearn.metrics import classification_report
#report per predire la accuracy
print(classification_report(y_test, y_pred))