GithubHelp home page GithubHelp logo

matrajaya / deep-learning-models Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gauravbh1010tt/deep-learning-models

0.0 0.0 0.0 16 KB

Implementing from scratch: NN, RNN, LSTM, GRU and CNN using theano.

Python 100.00%

deep-learning-models's Introduction

Deep-Learning-Models

Implementing from scratch: NN, RNN, LSTM, GRU and CNN using theano.

Usage:

import rnn
model = rnn.rnn_theano(vocab_size = 2000,h_dim = 100 ,saved_model = False)

vocab_size = size of vocabulary If using a previously saved model, use saved_model=True

The format the data should be

data = ['crystals in urine results',
        'picture of state trooper motorcycles',
        'chester a arthur',
        'missouri dept of elementary and secondary',
        'business forms for year end statement']

Prepare the data using

X_train,Y_train = rnn.prepare_data(data)

Train the model

rnn.train_with_sgd(model,X_train,Y_train,nepoch=3,learning_rate=0.01)

For LSTM and GRU

import lstm,gru
model = lstm.lstm_theano(vocab_size = 2000,h_dim = 100)
model = gru.gru_theano(vocab_size = 2000,h_dim = 100)

deep-learning-models's People

Contributors

gauravbh1010tt avatar

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.