camrongodbout / tensorflow-in-a-nutshell Goto Github PK
View Code? Open in Web Editor NEWThe repo for the fast and easy guide to the most popular deep learning framework in the world.
Home Page: camron.xyz
License: MIT License
The repo for the fast and easy guide to the most popular deep learning framework in the world.
Home Page: camron.xyz
License: MIT License
print m.predict(input_fn=lambda: input_fn(df_test))
a () is needed.
prin( m.predict(input_fn=lambda: input_fn(df_test)))
no workie on mac, python3/tensorflow
File "wide.py", line 104
print m.predict(input_fn=lambda: input_fn(df_test))
When running the example I get:
TypeError: __init__() got an unexpected keyword argument 'shape'
Easily fixed by changing:
dense_shape=[df[k].size, 1])
to
shape=[df[k].size, 1])
Hi
I am having some issue on this line:
https://github.com/c0cky/TensorFlow-in-a-Nutshell/blob/master/part2/wide.py#L92-L93
Does Pandas read_csv function accept a TF object as parameter?
I already have tried python2 and python3.
TensorFlow version: 0.12.1
If I run this code it works fine:
print(repr(pd.read_csv( "./train.csv", skipinitialspace=True)))
Error message:
everton@ubuntu:/projetos/TensorFlow-in-a-Nutshell/part2$ python2 wide.py
Traceback (most recent call last):
File "wide.py", line 114, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "wide.py", line 110, in main
train_and_eval()
File "wide.py", line 94, in train_and_eval
skipinitialspace=True)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 646, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 389, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 730, in init
self._make_engine(self.engine)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 923, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 1390, in init
self._reader = _parser.TextReader(src, **kwds)
File "pandas/parser.pyx", line 535, in pandas.parser.TextReader.cinit (pandas/parser.c:6086)
File "pandas/parser.pyx", line 710, in pandas.parser.TextReader._get_header (pandas/parser.c:8843)
File "pandas/parser.pyx", line 911, in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:11308)
File "pandas/parser.pyx", line 2014, in pandas.parser.raise_parser_error (pandas/parser.c:26862)
tensorflow.python.framework.errors_impl.OutOfRangeError: reached end of file
Error establishing a database connection
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.