/Deep-Learning-Project

Deep Learning Project - 2023/24

Primary LanguageJupyter Notebook

DEEP LEARNING PROJECT - REPOSITORY TEMPLATE

Deep Learning Project - 2023/24

This repository is a template repository for the homeworks to be developed in the Deep Learning course.

Deep Learning is a course of the

Group members

NAME SURNAME EMAIL
Francesco Chemello francesco.chemello.1@studenti.unipd.it
Pietro Volpato pietro.volpato@studenti.unipd.it

Organisation of the repository

The repository is organised as follows:

  • code: folder that contains all the code for the homework + files for git.
  • presentation: this folder contains the final presentation of the course.
    • slides: this folder contains the slides used for presenting the project.
  • developing: contains the files that the group uses for developing the application.

STRUCTURE

  1. Retrieve data from .csv files (training, validation and test set).
  2. OneHot coding from alphabetic to numeric (4xN matrix, N = sting size).
  3. Reshape the PyTorch tensor to fit the data.
  4. Implementation of CNN
  5. Implementation of LSTM
  6. Training the Nets implementing the early stop
  7. Run on the test set.
  8. Implementation of the ensemble learning for choosing the best label.
  9. Performance evaluation: metrics used by ViraMiner.
  10. Discussion of results + ppt presentation of work or pdf (as directed by the professor).

HOW TO RUN THE CODE

The code is written in .ipynb and before start the run is better to set the hyperparameters that are avaiable on 13th code cell.

These are:

  • path to the dataset.
    • 1 for data from local machine: the data must be inside a folder called data inside the folder where there is the code.
    • 2 for data from Colab: the data must be inside in the default folder.
    • 3 for data from Google Drive: the data must be inside the Colab folder.
  • number of data to be upsample.
  • number of data to be generated by SMOTE.
  • type of RNN.
    • 1 for GRU.
    • 2 for LSTM.

Note: if you want to test the code in your local machine you need to have at least 8 Gb of RAM and 6 GB of GRAM (if you have cuda) or at least 16 Gb RAM [1].

[1] data taken during Colab simulations.

License

All the contents of this repository are shared using the Creative Commons Attribution-ShareAlike 4.0 International License.

CC logo