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.

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.

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.

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.

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.

veravira commented May 25, 2017

same issue

@asuslov

This comment has been minimized.

asuslov commented May 25, 2017

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

@winklerj

This comment has been minimized.

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.

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.

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment