Code Monkey home page Code Monkey logo

tensorflow-workshop's Introduction

tensorflow-workshop's People

Contributors

annagoldie avatar christianbuck avatar chrisying avatar hereismari avatar j5b avatar kempy avatar random-forests avatar rodolfovieiranu avatar saeta avatar wolffg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tensorflow-workshop's Issues

Data not loading properly with matplotlib

I kept printing out this error when running Python 2.7
`---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
in ()
1 import numpy as np
----> 2 import matplotlib.pyplot as plt
3 get_ipython().magic(u'matplotlib inline')
4 import tensorflow as tf
5 learn = tf.contrib.learn

/Users/erinpangilinan/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/pyplot.py in ()
112
113 from matplotlib.backends import pylab_setup
--> 114 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
115
116 _IP_REGISTERED = None

/Users/erinpangilinan/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/backends/init.pyc in pylab_setup()
30 # imports. 0 means only perform absolute imports.
31 backend_mod = import(backend_name,
---> 32 globals(),locals(),[backend_name],0)
33
34 # Things we pull in from all backends

/Users/erinpangilinan/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py in ()
22
23 import matplotlib
---> 24 from matplotlib.backends import _macosx
25
26

RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are Working with Matplotlib in a virtual enviroment see 'Working with Matplotlib in Virtual environments' in the Matplotlib FAQ`

cloud-install issues

I seemed to have several issues with the cloud install. Specifically getting the docker running and code cloned:

After running docker run -it -p 8888:8888 -p 6006:6006 tensorflow/tensorflow bash, then inside the container I am unable to clone the git repository:

root@bd70aea44e99:/notebooks# git clone https://github.com/random-forests/tensorflow-workshop.git
bash: git: command not found

Later when I try to run jupyter notebook, that doesn't seem to work either:

root@bd70aea44e99:/notebooks# jupyter notebook
[W 16:41:22.749 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[C 16:41:22.756 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
root@bd70aea44e99:/notebooks# 

Thanks in advance for the setup help.

Error with max_steps parameter in 2b_regression_tf_learn

While running R.fit(x_data, y_data, batch_size=100, max_steps=1000) and D.fit(x_data, y_data, batch_size=100, max_steps=1000) in https://github.com/random-forests/tensorflow-workshop/blob/master/2b_regression_tf_learn.ipynb, I get the following error.

TypeError: fit() got an unexpected keyword argument 'max_steps'

Changing it to just steps allowed it to run without error.

Tried going through the code, and it looks like max_steps should be a valid parameter. This is with tensorflow==0.9.0 on OSX, Anaconda python 2.7.11.

When to expect data API code update (now that Tensorflow is in V1.4)

Hi Josh,
Thanks for sharing the notebooks! In the "07_structured_data", it states that "Using TensorFlow 1.4, the below can be written using regular Python code to parse the CSV file, via the Datasets. from_generator() method. This improves producivity a lot - it means you can use Python to read, parse, and apply whatever logic you wish to your input data - then you can take advantage of the reusable pieces of the Datasets API (e.g., batch, shuffle, repeat, etc) - as well as the optional performance tuning (e.g., prefetch, parallel process, etc).
In combination with Estimators, this means you can train and tune deep models at scale on data of almost any size, entirely using a high-level API. I'll update this notebook after v1.4 is released with an example. It's neat."

Now that v1.4 is released. Would you be updating this part of the notebook? Is so, when would you expect it complete? Thanks.

Data not loading properly with matplotlib

I kept printing out this error when running Python 2.7 and anaconda, was not able to load data here, but on other parts of Juptyer Notebook it ran.

`---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
in ()
1 import numpy as np
----> 2 import matplotlib.pyplot as plt
3 get_ipython().magic(u'matplotlib inline')
4 import tensorflow as tf
5 learn = tf.contrib.learn

/Users/user/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/pyplot.py in ()
112
113 from matplotlib.backends import pylab_setup
--> 114 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
115
116 _IP_REGISTERED = None

/Users/user/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/backends/init.pyc in pylab_setup()
30 # imports. 0 means only perform absolute imports.
31 backend_mod = import(backend_name,
---> 32 globals(),locals(),[backend_name],0)
33
34 # Things we pull in from all backends

/Users/erinpangilinan/anaconda2/envs/tensorflow/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py in ()
22
23 import matplotlib
---> 24 from matplotlib.backends import _macosx
25
26

RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are Working with Matplotlib in a virtual enviroment see 'Working with Matplotlib in Virtual environments' in the Matplotlib FAQ`

Was not able to load data training set

``---------------------------------------------------------------------------
NameError Traceback (most recent call last)
in ()
----> 1 mnist = learn.datasets.load_dataset('mnist')
2 data = mnist.train.images
3 labels = np.asarray(mnist.train.labels, dtype=np.int32)
4 test_data = mnist.test.images
5 test_labels = np.asarray(mnist.test.labels, dtype=np.int32)

NameError: name 'learn' is not defined``

using Python 2.7 and anaconda.

UnicodeDecodeError in 00_download_data.ipynb of zurich

On a Windows 7 machine with python-3.5.3-amd64 - when running the 00_download_data.ipynb of zurich I end up in the following error within cell no. 2 (when trying to load the "data/frog.npy"):

UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-6-64f0c986b1c7> in <module>()
     32     url = "https://storage.googleapis.com/quickdraw_dataset/full/numpy_bitmap/{}.npy".format(animal)
     33     file_path = maybe_download(url, DATA_DIR)
---> 34     data.append(load_data(file_path, max_examples = 1000, example_name = animal))
     35     labels.extend([animal2id[animal]]*data[-1].shape[0])
     36 

<ipython-input-6-64f0c986b1c7> in load_data(file_path, max_examples, example_name)
     20 
     21 def load_data(file_path, max_examples=2000, example_name=''):
---> 22     d = np.load(open(file_path, 'r'))
     23     d = d[:max_examples,:] # limit number of instances to save memory
     24     print("Loaded {} {} examples of dimension {} from {}".format(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.