Python 实际训练样本和跑步时历代可见的样本是不同的
我有191033样本,其中90%用于培训,其余10%用于测试,分别171929和19104用于培训和测试。 当我使用model.fit()拟合模型并执行时,它只显示2457样本,而不是171929…这是输出的快照Python 实际训练样本和跑步时历代可见的样本是不同的,python,keras,Python,Keras,我有191033样本,其中90%用于培训,其余10%用于测试,分别171929和19104用于培训和测试。 当我使用model.fit()拟合模型并执行时,它只显示2457样本,而不是171929…这是输出的快照 y shape is (191033,) and X shape is (191033, 77) y-train shape is (171929,) and y-test shape is (19104,) x-train shape is (171929, 77) a
y shape is (191033,) and X shape is (191033, 77)
y-train shape is (171929,) and y-test shape is (19104,)
x-train shape is (171929, 77) and x-test shape is (19104, 77)
Epoch 1/100
**2457**/**2457** [=======] - 4s 2ms/step - loss: 0.0274 - accuracy: 0.9918 - lr: 0.0010
这是使用拟合函数的代码
model.fit(X_train,y_train,batch_size = 70, epochs = 100,callbacks=[klrf])
关于发生这种情况的原因的任何建议。显示的数字是培训集中的批次数,
171929/70=2456.1
,总共2457个批次