application_vnd.jupyter.stderr_output_2.png text_plain_output_1.png
import numpy as np

import tensorflow as tf

np.random.seed(4)
tf.set_random_seed(13)

mp = '.\\boston_model.h5'
model.save(mp)

np.set_printoptions(precision=4)
unknown = np.full(shape=(1, 13), fill_value=0.6, dtype=np.float32)
unknown[0][3] = -1.0
predicted = model.predict(unknown)
print('Usando o modelo para previsão de preço médio de casa para as caracteristicas: ')
print(unknown)
print('\nO preço médio será [dolares]: ')
print(predicted * 10000)