Skip to content

updates required for TensorFlow 0.12.1 #4

@mg64ve

Description

@mg64ve

Hi, interesting examples and presentation.
I would like to give a try.
So I have just clone the git in my Ubuntu 16.04 and installed the most recent version of TensorFlow with pip.
But I get the following error:

root@ubumate:/opt/tensorflow/TensorFlow-Tutorials-for-Time-Series# python3 lstm-for-epf.py WARNING:tensorflow:From lstm-for-epf.py:34 in <module>.: calling BaseEstimator.evaluate (from tensorflow.contrib.learn.python.learn.estimators.estimator) with batch_size is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -> est = SKCompat(Estimator(...))

Do you have an idea how I should change the following line:

regressor = learn.TensorFlowEstimator(model_fn=lstm_model(TIMESTEPS, RNN_LAYERS, DENSE_LAYERS), n_classes=0, verbose=1, steps=TRAINING_STEPS, optimizer='Adagrad', learning_rate=0.03, batch_size=BATCH_SIZE))

in order to make it working?
Thanks.
Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions