Giter Club home page Giter Club logo

build_a_neural_net_live's Introduction

build_a_neural_net_live

##Overview This is the LSTM neural net code for the Live Youtube session by @Sirajology. I'm using the TFLearn library to train an LSTM neural network on a list of cities and then generate new city names.

##Installation

use pip to install the dependencies

##Usage

Run it like this in terminal, it'll take about 20 minutes to fully train

python lstm.py

build_a_neural_net_live's People

Contributors

llsourcell 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

Watchers

 avatar  avatar  avatar  avatar

build_a_neural_net_live's Issues

Visualizing the model in Tensorboard

Hi. During the live stream you did, you forgot to show the visualization of the model. I've trained trained the the lstm (I don't know what I was thinking when I decided to do it in a Ubuntu VM created in my desktop machine ใ…œ.ใ…œ). However, when I run the command: $ tensorboard --logdir='\tmp\tflearn_logs' , tensorflow prints out many times the message:

WARNING:tensorflow:Found more than one graph event per run, or there was a metagraph containing a graph_def, as well as one or more graph events. Overwriting the graph with the newest event.

Then nothing happens. I also tried accessing the IP that tensorflow suggests (http://192.168.127.1:6006) but I just get nothing. Help?

Problems

Hi Siraj, I'm work with caffe and c++ and i`ll trying to change to tensorflow and python, I'm following this tutorial your and i've this problem when i'm running the code:

`Vectorizing text...
Text total length: 207041
Distinct chars: 61

Total sequences: 69007

Run id: us cities
Log directory: /tmp/tflearn_logs/
Traceback (most recent call last):
File "lstm_by_tutorial.py", line 39, in
n_epoch=1, run_id='us cities')
File "/usr/local/lib/python2.7/dist-packages/tflearn/models/generator.py", line 174, in fit
run_id=run_id)
File "/usr/local/lib/python2.7/dist-packages/tflearn/helpers/trainer.py", line 247, in fit
max_batches_len = np.max([t.n_batches for t in self.train_ops])
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2293, in amax
out=out, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/numpy/core/_methods.py", line 26, in _amax
return umr_maximum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation maximum which has no identity
`

I don't know if is a python bug or some dependencies is lost, i realy apreciate if you can have any idea.

Thanks and keep going with you really good job.

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.