Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Estimator demo using Automobile dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seanmb

This comment has been minimized.

Copy link

seanmb commented May 19, 2017

Hi, the dnnregressor is not working for me. I get the following error: ValueError:

Dimension size must be evenly divisible by 5 but is 64 for 'dnn/input_from_feature_columns/input_layer/body-style_indicator/Reshape' (op: 'Reshape') with input shapes: [64], [2] and with input tensors computed as partial shapes: input[1] = [?,5].

@alain2208

This comment has been minimized.

Copy link

alain2208 commented May 19, 2017

same as seanmb on windows cpu on the dnnregressor.fit(input_fn=training_input_fn, steps=10000)

@nnwanwa

This comment has been minimized.

Copy link

nnwanwa commented May 19, 2017

In the talk, Martin mentioned that the code was written for Tensorflow 1.2, and wouldn't work with earlier versions. So my guess is that you may be using an earlier version...

@matejurbasik

This comment has been minimized.

Copy link

matejurbasik commented May 24, 2017

I have the same problem. I am sure I have tensorflow 1.2

I am new to ML and I miss on every tutorial, even this one, example how to use it. How can I manually input new car's params and get estimated output?

@veravira

This comment has been minimized.

Copy link

veravira commented May 25, 2017

same issue

@asuslov

This comment has been minimized.

Copy link

asuslov commented May 25, 2017

the error has already been fixed in source
tensorflow/tensorflow@5c1949e

@winklerj

This comment has been minimized.

Copy link

winklerj commented May 30, 2017

@seanmb I had a similar issue when I was using a numeric column and accidentally had the shape parameter set. In your case it looks like body_style is set to an int64 (which is the 64 in the error) but you are specifying something like tf.feature_column.numeric_column('body-style',5). Drop the 5 and it should resolve this error.

@shmalex

This comment has been minimized.

Copy link

shmalex commented Dec 20, 2017

Hi, thanks for article. can you please help me understand how to use that model? simple code sample? many thanks.

@joepareti54

This comment has been minimized.

Copy link

joepareti54 commented Sep 2, 2018

if I don't have jupiter notebook (in my case I work in Azure and have no graphics), can I put all the lines of code in one text file and run through it? How?

@hmz17

This comment has been minimized.

Copy link

hmz17 commented Oct 27, 2018

if I don't have jupiter notebook (in my case I work in Azure and have no graphics), can I put all the lines of code in one text file and run through it? How?

Try using Google CoLab, its free online Jupyter Notebook

@joepareti54

This comment has been minimized.

Copy link

joepareti54 commented Jan 22, 2019

I have put the code in one file called code.py which I pass as input to python(3). The job terminates without any output, but with the following messages. Anything I can do to fix?

WARNING:tensorflow:Using temporary folder as model directory: /home/u23885/tmp/tmpzouq5h7f
WARNING:tensorflow:RunConfig.uid (from tensorflow.contrib.learn.python.learn.estimators.run_config) is experimental and may change or be removed at any time, and without warning.
WARNING:tensorflow:RunConfig.uid (from tensorflow.contrib.learn.python.learn.estimators.run_config) is experimental and may change or be removed at any time, and without warning.
WARNING:tensorflow:From /home/u23885/.local/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/monitors.py:267: BaseMonitor.init (from tensorflow.contrib.learn.python.learn.monitors) is deprecated and will be removed after 2016-12-05.
Instructions for updating:
Monitors are deprecated. Please use tf.train.SessionRunHook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.