Giter Club home page Giter Club logo

keras-tutorial's Introduction

Keras tutorial

This is a basic Keras tutorial, teaching the basics of feedforward, convolutional, and recurrent neural networks. There are also sections on regularization and how to use the Keras backend to write portable code that runs both in Theano and Tensorflow.

keras-tutorial's People

Contributors

jfsantos 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

keras-tutorial's Issues

Problem in keras notebook

Hello, awesome tutorials.
The piece of code in the third notebook (Feedforward neural networks) where it plots the output of the activation functions did not run in my computer. I don't know if is just on my machine, but I changed I little to work.

import matplotlib
matplotlib.use('nbagg')

import keras.backend as K
import numpy as np
from matplotlib import pyplot as plt
import tensorflow as tf

sess = tf.InteractiveSession()

activations = ['sigmoid', 'tanh', 'ReLU']

x = tf.linspace(-5., 5., 100, name="linspace")

y = list()
y.append(K.tanh(x))
y.append(K.relu(x))
y.append(K.sigmoid(x))

plt.figure(figsize=(10,12))
idx = 0

for _y in y:
    _y = tf.Print(_y, [_y])
    
    aux = _y.eval()
    
    plt.subplot(3,1,idx+1)
    plt.plot(np.linspace(-5, 5, 100), aux)
    plt.xlabel(name[idx])
    plt.ylim([np.min(aux)-0.025, np.max(aux)+0.025])
    
    idx += 1
    
    pass

plt.show()

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.