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

For market data #8

Closed
mahfujau opened this issue May 3, 2018 · 6 comments
Closed

For market data #8

mahfujau opened this issue May 3, 2018 · 6 comments

Comments

@mahfujau
Copy link

mahfujau commented May 3, 2018

Can you release the code for market1501 dataset, please?

@omoindrot
Copy link
Owner

You mean adapt the code for MNIST to make it work with the market1501 dataset?

I would encourage you to do it yourself and maybe submit a pull request?

@bzhong2
Copy link

bzhong2 commented Jul 2, 2018

Is there any example of importing custom dataset?

@omoindrot
Copy link
Owner

If you want to use your own dataset, you just need to create an input function that returns a dataset containing (image, label) pairs, just like in model/input_fn.py.

You can check a tutorial on creating TensorFlow Datasets here: https://www.tensorflow.org/programmers_guide/datasets

@cxfire16
Copy link

Hi @omoindrot, to what I've understood the model/input_fn.py just seems to feed data into the model which makes me think that it's the mnist_dataset.py that we should create to be able to adapt other datasets. Am I understanding it correctly? btw, thanks for pointing out the guide to creating input pipelines! huge help! thanks!

@omoindrot
Copy link
Owner

@cxfire16: As long as you create a tf.data.Dataset (as described in the dataset guide) and return it in the input function you should be good.

You should also look at the estimator guide to understand more about the input functions you need.

The mnist_dataset.py file is taken from the official TensorFlow repo (here) and downloads the TFRecords files for MNIST and create a dataset.

You don't need to go through TFRecords to work on your own dataset, you can just build a simple input function with tf.data and use it in the estimator.

@cxfire16
Copy link

That's noted! Thanks!

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

No branches or pull requests

4 participants