PANDA_MC_test/run_whole_MC_train_test.sh
#!/bin/bash
# Copyright (C) 2024 Mitsubishi Electric Research Laboratories (MERL)
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# Giulio Giacomuzzo 08/12/2022
    # This script runs the whole MC test (with cpu computations)
    # 1 - Generate synthetic data
    # 2 - generate config files
    # 3 - train & test LK models (LK_RBF_1_sc, LK_GIP_sum)
    # 4 - train & test SJ models (RBF, GIP)
    # 5 - train & test Delan model


if [ ! -d './log' ]
        then
            echo "Directory 'log' does not exists. Creating it."
            mkdir -p './log'
        fi

source gen_num_kernel_functions.sh | tee -a ./log/MC_train_test_log.txt
source gen_MC_data_sum_of_sins.sh 50 | tee -a ./log/MC_train_test_log.txt
python ./config/gen_config_file_sum_of_sin.py -name_prefix 'config/' | tee -a ./log/MC_train_test_log.txt
python ./config/gen_config_file_sum_of_sin_SJ.py -name_prefix 'config/' | tee -a ./log/MC_train_test_log.txt
source run_MC_test_PANDA_LK_models_sum_of_sins.sh train_test | tee -a ./log/MC_train_test_log.txt
source run_MC_test_PANDA_SJ_models_sum_of_sins.sh train_test | tee -a ./log/MC_train_test_log.txt
source run_MC_test_PANDA_Delan_models_sum_of_sins.sh train_test | tee -a ./log/MC_train_test_log.txt
