#train model
#here is one sample
sample = validation_X[0].reshape(1, -1)
#print the sample for reference
print(sample)
#show the weights for reference
print(model.get_weights())
#show prediction
print(model.predict(sample))
#another prediction that is the same as above
print(model.predict(sample))
#save model
model.save('mymodel.h5')
#reload model
model = load_model('mymodel.h5')
#sample looks to be the same as above
print(sample)
#weights also look to be the same as above
print(model.get_weights())
#prediction is different here?
print(model.predict(sample))
Почему моя модель предсказывает другое значение после его перезагрузки?Я проверяю, и образец, очевидно, такой же, и из глазного теста веса выглядят одинаково.Что может быть причиной того, что модель дает здесь другой прогноз?