This repository contains codes used for training models of Deeplanding autoland system. Make sure you've already trimmed your data (as written here) before you train your models with it using this codes.
Make sure you're working in TA-HPC-Scripts folder before proceeding.
$ cd TA-HPC-Scripts/- If it didn't already exist, create
Data/Processed/Selected/directory insideTA-HPC-Scripts/. Your directory structure should look like this:
$ deeplanding
$ ├── ...
$ └── TA-HPC-Scripts
$ └── Data
$ └── Processed
$ └── Selected
$ ├── ...
$ ...- Now, copy all the trimmed data into
Selectedfolder. - If you want to train longitudinal models put all files inside
deeplanding/xpcclient/Trimmed.lonintoTA-HPC-Scripts/Data/Processed/Selected/. And if you want to train aileron model, replace it with files fromdeeplanding/xpcclient/Trimmed.ail.
First, we will train the longitudinal models, it contains elevator model, throttle model, selected airspeed model, and flap model.
- Make sure you're working in
TA-HPC-Scriptsfolder.
$ cd TA-HPC-Scripts/- Train the models one-by-one. Make sure to remember the order in which you train the models, because we need to rename the folder containing our models later.
## Bellow are the command to train each model
# 1. Elevator model
$ ./hpcs --mid e_simp_1
$ ./hpcs --from trainready --until post
# 2. Throttle model
$ ./hpcs --mid t_simp_1
$ ./hpcs --from trainready --until post
# 3. Selected airspeed model
$ ./hpcs --mid s_simp_1
$ ./hpcs --from trainready --until post
# 4. Flap model
$ ./hpcs --mid f_simp_1
$ ./hpcs --from trainready --until post- Rename each respective models' folder into into
Elevator,Throttle,SelectedAirspeed, andFlap. And then copy those folder intodeeplanding/xpcclient/Models/.
Now that we finished training longitudinal models, next we will train the aileron model.
- Rename
TA-HPC-Scripts/Data/Processed/intoTA-HPC-Scripts/Data/Processed.lon(so we can accessed the data inside it later). - Copy all files from
deeplanding/xpcclient/Trimmed.ailtoTA-HPC-Scripts/Data/Processed/Selected/. - Train the aileron model
# Train aileron model with the following command
$ ./hpcs --mid a_simp_1
$ ./hpcs --from trainready --until post- Rename the model's folder to
Aileronand then copy that folder todeeplanding/xpcclient/Models/.
You can also test the models's prediction on training data by checking the compare_model.ipynb notebook.