Training metrics graph generator (Accuracy, Loss) according to the provided model (which can be GRU, LSTM or Transformer)
Given a model name and the desired metric, this generator will generate a graph according to the data generated in the training process of that model. It's worth noting that you can generate graphics for more than one model.
This project was made with the intention of being an integral part of my final final project. All aspects addressed in the implementation were made according to the needs of the project as a whole. Cape Verdean Creole is the mother language of Cape Verde, which is not an official language and is not well represented and known around the world. Therefore, it is a great honor to carry out studies and projects that contribute to its recognition and dissemination.
Run the following command to install all the dependencies:
pip install -r requirements.txt
To generate the graph you need to pass the correct parameters during the execution of the main Python file, for example:
- Example 1:
It is intended to generate a graph from an LSTM model with origin in English and destination in Cape Verdean Creole
python main.py -m LSTM -s en -t cv
- Example 2:
It is intended to generate a graph from the Transformer and GRU models with origin in Cape Verdean Creole and destination in English
python main.py -m Transformer GRU -s cv -t en
- Example 1:
It is intended to generate a graph from the GRU, LSTM and the Transformer models with origin in English and destination in Cape Verdean Creole
python main.py -m GRU LSTM Transformer -s en -t cv
Notes that the parameters have the following meanings:
- '-m' or '--model' are the models, or the model, that you want to make the graph;
- '-s' or '--source' is the source language;
- '-t' or '--target' is the target language.
The whole project is divided into parts and each part has an essential function in it. They are distributed as shown in the subtopics below.
This are the model used in the whole project:
- Transformer model implementation
- GRU model implementation
- LSTM model implementation
- Models Training Graphs Generator
This is a React App made to test all the translations made by the models, similar to the App Google Translator. Projects related to using the frontend application can be found at:
The dataset used to train, validate and test the model was the CrioleSet dataset. If the dataset is not in the project while executing any of the action commands, it will be downloaded and added to the project.
MIT
Feel free to use and get in touch with any questions.