Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

example bug? #2271

Closed
mhzdlm opened this issue May 29, 2016 · 5 comments
Closed

example bug? #2271

mhzdlm opened this issue May 29, 2016 · 5 comments

Comments

@mhzdlm
Copy link
Contributor

mhzdlm commented May 29, 2016

in exapmle page。
https://github.com/dmlc/mxnet/tree/master/example/image-classification

Use Your Own Datasets

has that code

train_iter = mx.io.NDArrayIter(train_data, train_label, batch_size=batch_size, shuffle=True)

val_iter = mx.io.NDArrayIter(val_data, val_label, batch_size=batch_size)

model.fit(X=train_data, y=train_label)

train_iter bug use train_data

is a bug?

@mhzdlm
Copy link
Contributor Author

mhzdlm commented May 29, 2016

英语太烂,中文再来一遍。

example的例子页面,使用自己的数据时,
train_iter = mx.io.NDArrayIter(train_data, train_label, batch_size=batch_size, shuffle=True)

val_iter = mx.io.NDArrayIter(val_data, val_label, batch_size=batch_size)

model.fit(X=train_data, y=train_label)

构建了两个intel迭代器,然后fit的时候直接用train_data,根本没用到itel,应该是写错了吧?

@mhzdlm
Copy link
Contributor Author

mhzdlm commented May 29, 2016

正确用法,应该是这样吧

model.fit(X = train_iter, eval_data = val_iter)

@piiswrong
Copy link
Contributor

Yes it's a typo. Would you like to submit a PR to fix this?

@mhzdlm
Copy link
Contributor Author

mhzdlm commented May 29, 2016

i just use github 5 days,so i doest know how to fix it.

but i can try.

@phunterlau
Copy link
Contributor

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

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

No branches or pull requests

3 participants