Here are the steps for creating one more example for RPAC Toolkit using the cloud-phase-prediction tool.
To run the train.py with the required data in the local machine. To make sure the code is running properly, I ran the script locally providing a local training_data path and model_save path.
Once the algorithm runs successfully two output files are generated. They are - "model.pth" and "scaler.pkl"
After this, I installed docker to achieve containerization. I created the docker image using the following command "docker build -t dock1".
After the image is created, I moved all the pre-requisites files to a folder. This folder contains Dockerfile, training_data, train.py, application.ini, personal.ini, and resource.ini files. The Dockerfile contains the command for running the docker image.
After that, I configured the initialization files with the required details.
Note: for the personal.ini file, the cloud credentials field is not updated, as I don't have permission to generate my cloud access key in the AWS management console.
Now, as in the main.py script, there is a calling function available for the initialization files, but for the train.py script, it is missing. Therefore, the initialization files cannot be utilized in this scenario. To make it useful, we need to include code to call the ini files and achieve complete automation.
Here are the steps for creating one more example for RPAC Toolkit using the cloud-phase-prediction tool.