TensorFlow模型。拟合输入错误

时间:2018-08-23 11:21:02

标签: python numpy tensorflow

设置具有序列错误的数组元素。您能否告诉我,供feed.model使用的正确输入数据格式是什么? 这是我的代码:

X = np.array(training_data[0])
y = np.array(training_data[1])

model = neural_network_model(input_size = len(X[0]))

model.fit(X, y, n_epoch=4, snapshot_step=500, show_metric=True, run_id='snek_learning')
return model

其中training_data[0]是7个布尔值的列表,而training_data[1]是4个布尔值的列表
例如:
[False, False, False, True, False, False, True] [1, 0, 0, 0]

0 个答案:

没有答案
相关问题