Skip to content

jverbraeken/Deep-Learning

Repository files navigation

Running

Train and run the transformer, transformer w/ preprocessing or LSTM (subwords)

Look in the /notebooks folder to find three jupyter notebooks with instructions on how to run the models (take note that some functionality, like saving and loading from google Drive requires you to run the file via Google Colab.

Train and run the custom LSTM and Vanilla models

To run the custom-made networks in the models folder, simply execute the file from the root directory (make sure this root folder is added to your PYTHONPATH). An example call to train the LSTM model and generate comments for the validation set is shown below:

$ export PYTHONPATH = "${PYTHONPATH}:/path/to/our/project/"
$ python3 models/seq2seqLSTM.py
$ python3 models/infer_lstm.py

Example outputs

Example outputs for the models can be found in the Evaluation folder. This folder also contains the generated markdown files used for our expert evaluation for the subword LSTM and Transformer models.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors