All Projects → revsic → Numpy Rnn

revsic / Numpy Rnn

Licence: mit
numpy implementation of Recurrent Neural Network

Projects that are alternatives of or similar to Numpy Rnn

Multi Label
Pytorch code for multi-Instance multi-label problem
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Interviewqs.com code snippets
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Musicbox
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Aws Deepracer Workshops
DeepRacer workshop content
Stars: ✭ 968 (+2833.33%)
Mutual labels:  jupyter-notebook
Foltr Es
The source code to reproduce the results reported in the 'Federated Online Learning to Rank with Evolution Strategies' paper, published at WSDM 2019.
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Cgm Ml
Child Growth Monitor Machine Learning
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Pytorch Softplus Normalization Uncertainty Estimation Bayesian Cnn
PyTorch code for Paper "Uncertainty Estimations by Softplus normalization in Bayesian Convolutional Neural Networks with Variational Inference"
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Unsw
Course materials
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Vizwiz Vqa Pytorch
PyTorch VQA implementation that achieved top performances in the (ECCV18) VizWiz Grand Challenge: Answering Visual Questions from Blind People
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Retainvis
An implementation of RetainVis: Visual Analytics with Interpretable and Interactive Recurrent Neural Networks on Electronic Medical Records
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Natural Language Processing
Resources for "Natural Language Processing" Coursera course.
Stars: ✭ 969 (+2836.36%)
Mutual labels:  jupyter-notebook
Sanet Keras
Implement SANet for crowd counting in Keras.
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Stats and probability
Tutorial on stats and probability
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Geemap
A Python package for interactive mapping with Google Earth Engine, ipyleaflet, and folium
Stars: ✭ 959 (+2806.06%)
Mutual labels:  jupyter-notebook
Cwl Data
Call of Duty World League Player Data
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Object detection tools
Object detection useful tools for TensorFlow Object Detection API
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Prediciting Binary Options
Predicting forex binary options using time series data and machine learning
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Deep Dream
PyTorch implement of Google Deep Dream
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Carvana Image Masking Challenge
https://www.kaggle.com/c/carvana-image-masking-challenge
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook
Hse Nlp Coursera
Solution for https://www.coursera.org/learn/language-processing
Stars: ✭ 33 (+0%)
Mutual labels:  jupyter-notebook

numpy-RNN

numpy implementation of Recurrent Neural Networks

Recurrent Neural Networks

Training Vanilla RNN for binary addition.

largest = pow(2, BIN_DIM)
decimal = np.array([range(largest)]).astype(np.uint8).T
binary = np.unpackbits(decimal, axis=1)

Simply prepare the binary digit database. And propagate forward and backward to train binary addition.

hidden = sigmoid(np.dot(X, w0) + np.dot(hidden_values[-1], wh))
output = sigmoid(np.dot(hidden, w1))

pred[pos] = np.round(output[0][0])

Training was successful with 100% accuracy.

----------
Iter 9000
Error : [ 0.68126419]
Pred : [1 0 1 0 1 0 0 0]
True : [1 0 1 0 1 0 0 0]
108 + 60 = 168
----------

LSTM Networks

Training LSTM RNN for mnist handwritten digit recognition.

mnist = tf.keras.datasets.mnist
(train_x, train_y), _ = mnist.load_data()

Prepare the mnist digit database with tf.keras.datasets.mnist.

caches, states = LSTM_Cell(Xt)
c, h = states[-1]

out = np.dot(h, wy) + by
pred = softmax(out)
entropy = cross_entropy(pred, Y)

Train the LSTM model with BPTT and it was successful to recognize handwritten digits.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].