Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base_model.py #93

Merged
merged 1 commit into from
May 21, 2019
Merged

Update base_model.py #93

merged 1 commit into from
May 21, 2019

Conversation

Heklis
Copy link

@Heklis Heklis commented May 21, 2019

修改了当样本数是batch_size整数倍时的处理操作.
当我使用分类的 CNNModel 时,训练集的样本数是120000,调用fit方法,报错。
原因是120000 是 batch_size(64) 的整数倍,多了一个page,代码在判断 target_x[0] 为空后,直接 append 了一个批次的样本,但是实际上 target_x[0] 仍然为空,因此我加了 pop 操作。

修改了当样本数是batch_size整数倍时的处理操作
@BrikerMan BrikerMan merged commit c6fb74c into BrikerMan:master May 21, 2019
@BrikerMan
Copy link
Owner

谢啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants