Skip to content

Instantly share code, notes, and snippets.

@martinwicke
Last active January 9, 2022 08:14
Show Gist options
  • Save martinwicke/6838c23abdc53e6bcda36ed9f40cff39 to your computer and use it in GitHub Desktop.
Save martinwicke/6838c23abdc53e6bcda36ed9f40cff39 to your computer and use it in GitHub Desktop.
Estimator demo using Automobile dataset
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asuslov
Copy link

asuslov commented May 25, 2017

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

@winklerj
Copy link

@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
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
Copy link

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
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
Copy link

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