Skip to content

SKLearn examples not working in the latest release #2421

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

Closed
perrohunter opened this issue May 18, 2016 · 2 comments
Closed

SKLearn examples not working in the latest release #2421

perrohunter opened this issue May 18, 2016 · 2 comments

Comments

@perrohunter
Copy link

I've been trying to run some examples from the provided SKFlow examples located at

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/skflow

And most fail with dependency failures such as:

AttributeError: 'module' object has no attribute 'datasets'

For:

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/skflow/text_classification_builtin_rnn_model.py

I looked around the source code and some of this modules seem to have been moved around, maybe this examples should be updated or completely removed, I tried adapting the code to work however I ended copying big chunks of source code into the file to make it work.

using tensorflow 0.8

@mrry mrry added the skflow label May 19, 2016
@mrry
Copy link
Contributor

mrry commented May 19, 2016

The skflow examples in the master branch have changed to use a new API that isn't present in the 0.8 release. There are two options:

  1. Download the examples from the r0.8 branch: https://github.com/tensorflow/tensorflow/tree/r0.8/tensorflow/examples/skflow
  2. Install a nightly version of TensorFlow and use the examples from the master branch.

@zd123
Copy link

zd123 commented May 22, 2016

Hey, if you dont want to re-install the nightly build, you can manually download the same dataset. I've documented ez steps here: http://stackoverflow.com/questions/37206459/tensorflow-examples-all-fail-due-to-attributeerror-module-object-has-no-attri

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

3 participants