Skip to content

SKLearn examples not working in the latest release #2421

Closed
@perrohunter

Description

@perrohunter

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

Activity

mrry

mrry commented on May 19, 2016

@mrry
Contributor

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

zd123 commented on May 22, 2016

@zd123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mrry@perrohunter@zd123

        Issue actions

          SKLearn examples not working in the latest release · Issue #2421 · tensorflow/tensorflow