Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 实际训练样本和跑步时历代可见的样本是不同的_Python_Keras - Fatal编程技术网

Python 实际训练样本和跑步时历代可见的样本是不同的

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

我有191033样本,其中90%用于培训,其余10%用于测试,分别17192919104用于培训和测试。 当我使用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)  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个批次