All Projects → bamtercelboo → pytorch_Highway_Networks

bamtercelboo / pytorch_Highway_Networks

Licence: other
Highway Networks implement in pytorch

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pytorch Highway Networks

Health-Discernment-System
A menu based multiple chronic disease detection system which will detect if a person is suffering from a severe disease by taking an essential input image.
Stars: ✭ 25 (-60.32%)
Mutual labels:  cnn-model
segm-lstm
[deprecated] reference code for string segmentation using LSTM(tensorflow)
Stars: ✭ 19 (-69.84%)
Mutual labels:  lstm-model
Deep-Learning
This repo provides projects on deep-learning mainly using Tensorflow 2.0
Stars: ✭ 22 (-65.08%)
Mutual labels:  lstm-model
recurrent-neural-net
A recurrent (LSTM) neural network in C
Stars: ✭ 68 (+7.94%)
Mutual labels:  lstm-model
COVID-away
Repo of paper title 'Avoid touching your face: A hand-to-face 3d motion dataset (covid-away) and trained models for smartwatches'
Stars: ✭ 18 (-71.43%)
Mutual labels:  cnn-model
SpeakerDiarization RNN CNN LSTM
Speaker Diarization is the problem of separating speakers in an audio. There could be any number of speakers and final result should state when speaker starts and ends. In this project, we analyze given audio file with 2 channels and 2 speakers (on separate channels).
Stars: ✭ 56 (-11.11%)
Mutual labels:  cnn-model
Weapon-Detection-And-Classification
Weapon Detection & Classification through CCTV surveillance using Deep Learning-CNNs.
Stars: ✭ 53 (-15.87%)
Mutual labels:  cnn-model
CompareModels TRECQA
Compare six baseline deep learning models on TrecQA
Stars: ✭ 61 (-3.17%)
Mutual labels:  cnn-model
Stock-Market-Predictor
Stock Market Predictor with LSTM network. Web scraping and analyzing tools (ohlc, mean)
Stars: ✭ 28 (-55.56%)
Mutual labels:  lstm-model
Meetup-Content
Entirety.ai Intuition to Implementation Meetup Content.
Stars: ✭ 33 (-47.62%)
Mutual labels:  lstm-model
Probabilistic-RNN-DA-Classifier
Probabilistic Dialogue Act Classification for the Switchboard Corpus using an LSTM model
Stars: ✭ 22 (-65.08%)
Mutual labels:  lstm-model
CharLM
Character-aware Neural Language Model implemented by PyTorch
Stars: ✭ 32 (-49.21%)
Mutual labels:  highway-network
skripsiTF
Skripsi
Stars: ✭ 21 (-66.67%)
Mutual labels:  cnn-model
Image-Classification
Pre-trained VGG-Net Model for image classification using tensorflow
Stars: ✭ 29 (-53.97%)
Mutual labels:  cnn-model
cool-papers-in-pytorch
Reimplementing cool papers in PyTorch...
Stars: ✭ 21 (-66.67%)
Mutual labels:  highway-network
pyTorch-text-classification
pyTorch-text-classification
Stars: ✭ 15 (-76.19%)
Mutual labels:  cnn-model
Predictive-Maintenance
time-series prediction for predictive maintenance
Stars: ✭ 28 (-55.56%)
Mutual labels:  lstm-model
yolo-deepsort-flask
Target detection and multi target tracking platform based on Yolo DeepSort and Flask.
Stars: ✭ 29 (-53.97%)
Mutual labels:  cnn-model
VoiceNET.Library
.NET library to easily create Voice Command Control feature.
Stars: ✭ 14 (-77.78%)
Mutual labels:  cnn-model
Music-Genre-Classification
Genre Classification using Convolutional Neural Networks
Stars: ✭ 27 (-57.14%)
Mutual labels:  cnn-model

Introduction

Requirement

  • python 3
  • pytorch > 0.1
  • torchtext > 0.1
  • numpy

Summary of paper

  • This is summary of paper by me, the blog explains Highway Networks in detail: Highway Networks

Result

  • The test result in my demo.

How to use the folder or file

  • the file of hyperparams.py contains all hyperparams that need to modify, based on yours nedds, select neural networks what you want and config the hyperparams.

  • the file of main-hyperparams.py is the main function,run the command ("python main_hyperparams.py") to execute the demo.

  • the folder of models contains all neural networks models.

  • the file of train_ALL_CNN.py is the train function about CNN

  • the file of train_ALL_LSTM.py is the train function about LSTM

  • the folder of loaddata contains some file of load dataset

  • the folder of word2vec is the file of word embedding that you want to use

  • the folder of data contains the dataset file,contains train data,dev data,test data.

  • the file of Parameters.txt is being used to save all parameters values.

  • the file of Test_Result.txt is being used to save the result of test,in the demo,save a model and test a model immediately,and int the end of training, will calculate the best result value.

How to use the Word Embedding in demo?

  • the word embedding file saved in the folder of word2vec, but now is empty, because of it is to big,so if you want to use word embedding,you can to download word2vec or glove file, then saved in the folder of word2vec,and make the option of word_Embedding to True and modifiy the value of word_Embedding_Path in the hyperparams.py file.

Highway Networks and Highway Networks Variant

  1. model-BiLSTM-1.py is a simple bidirection LSTM neural networks model.

  2. model-BiLSTM-List.py is a simple bidirection LSTM neural networks model.

  3. model-BiLSTM-Cat.py is a simple bidirection LSTM variant neural networks model.

  4. model-CNN.py is a simple CNN neural networks model.

  5. model-HBiLSTM.py is a simple HIghway BiLstm neural networks model.

  6. model-HBiLSTM-CAT.py is a simple HIghway BiLstm variant neural networks model.

  7. model-HCNN.py is a simple HIghway CNN neural networks model.

  8. model-HighWay.py is a simple Highway networks model.

  9. model-HighWayBiLSTM.py is a simple Highway BiLstm variant networks model.

  10. model-HighWayCNN.py is a simple Highway CNN variant networks model.

  11. model-HighWay-BiLSTM.py is a HighWay NetWorks variant model with use in the BiLSTM model.

  12. model-HighWay-CNN.py is a HighWay NetWorks model variant with use in the CNN model.

How to config hyperparams in the file of hyperparams.py

  • learning_rate: initial learning rate.

  • epochs:number of epochs for train

  • batch_size:batch size for training

  • log_interval:how many steps to wait before logging training status

  • test_interval:how many steps to wait before testing

  • save_interval:how many steps to wait before saving

  • save_dir:where to save the snapshot

  • datafile_path:datafile path

  • name_trainfile:name of the train file

  • name_devfile:name of the dev file

  • name_testfile: name of the test file

  • char_data: whether to use the strategy of char-level data

  • shuffle:whether to shuffle the dataset when load dataset

  • epochs_shuffle:whether to shuffle the dataset when train in every epoch

  • TWO-CLASS-TASK:execute two-classification-task

  • dropout:the probability for dropout

  • max_norm:l2 constraint of parameters

  • clip-max-norm:the values of prevent the explosion and Vanishing in Gradient

  • kernel_sizes:comma-separated kernel size to use for convolution

  • kernel_num:number of each kind of kernel

  • static:whether to update the gradient during train

  • Adam:select the optimizer of adam

  • SGD:select the optimizer of SGD

  • Adadelta:select the optimizer of Adadelta

  • optim-momentum-value:the parameter in the optimizer

  • wide_conv:whether to use wide convcolution True : wide False : narrow

  • min_freq:min freq to include during built the vocab when use torchtext, default is 1

  • word_Embedding: use word embedding

  • embed_dim:number of embedding dimension

  • word-Embedding-Path:the path of word embedding file

  • lstm-hidden-dim:the hidden dim with lstm model

  • lstm-num-layers:the num of hidden layers with lstm

  • no_cuda: use cuda

  • num_threads:set the value of threads when run the demo

  • init_weight:whether to init weight

  • init-weight-value:the value of init weight

  • weight-decay:L2 weight_decay,default value is zero in optimizer

  • seed_num:set the num of random seed

  • rm_model:whether to delete the model after test acc so that to save space

Reference

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].