Giter Site home page Giter Site logo

keras-examples's Introduction

Keras example codes

Dependencies

I recommend using anaconda3

  • python libraries
    • Keras
    • tensorflow or theano
    • pydot_ng
    • matplotllib
    • daft (only tutorial )
    • gensim (only save and load word embeddings)
  • software
    • graphviz

Contents

Keras 1

  • Image
    • CNN_MNIST
    • variational auto encoder for CIFAR10
    • Gumbel-softmax with variational auto encoder for MNIST
    • residual CIFAR10
  • Text
    • encoder-decoder
    • Skip-Gram : not hieraltical softmax and negative sampling
  • Tutorial
    • keras_tutorial : for Machine Learning seminar at Tsukuba (note: 7MB notebook and ja only)

Keras 2

  • autoencoder
  • MLP_MNIST
  • CNN_CIFAR10
  • CBoW : Normal softmax
  • RNN_binary_classification
  • NNLM
  • SCRNLM : Structurally Constrained Recurrent Nets Language Model
  • fastText : Bi-gram features and softmax
  • Skip-Gram&NG : Skip-gram with negative sampling
  • prodLDA : Product of experts model’s LDA based on VAE
  • sklearn_MLP_MNIST: Sklearn API example for parameter search on MNIST classification

keras-examples's People

Contributors

nzw0301 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

keras-examples's Issues

Index out of range

Getting index out of range in Cell 8, keras-examples/CNN_MNIST.ipynb

The value of pos is getting computed to 51 and it complains that this value must be between 1 and 50

for img_index, filters in enumerate(first_layer, start=1):

    for filter_index, mat in enumerate(filters):

        pos = (filter_index)*10+img_index

        draw_digit(mat, nb_filters, show_size, pos)

plt.show()

Now first layer has dimensions : (26,26,5)
hence img_index goes from 1 to 26.

filters has dimension (26,5)
filter_index goes from 0 to 25.

when filter_index = 5 and img_index = 1, pos = 51 and exception is raised

about the data

can you please tell me where to down load the "yellow.ja.txt" and "yellow.en.txt" ? I could not find them through internet

Problem with CBoW

Hello,
I tried your CBoW program and it did not work. I have the latest versions of Anaconda, Keras, and Tensorflow. My machine is a mac.
1/ When opening the Alice text, Python complains that it is not UTF-8. I had to convert this text to be able to read it.
2/ The shape of the labels is not correct. You can correct it with the statement
labels.append([word])
instead of
labels.append(word)

Thank you for putting your code online.
Pierre

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.