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)) | |