File size: 423 Bytes
f6313e7
 
 
 
 
 
 
 
fa9f8e5
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from keras.models import Model,model_from_json
json_file = open("model.json",'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)
loaded_model.load_weights("model.h5")
print("cargado el modelo en el disco")
loaded_model.compile(loss='mean_squared_error',optimizer='adam',metrics='binary_accuracy')
X0 = 0
X1 = 0
XX = [[X0,X1]]
print(loaded_model.predict(XX).round())