@todo
Using conda/mamba:
mamba env create -f environment.yml
conda activate tf3
Using pip: @todo
# Install virtualenv
sudo apt install virtualenv
# Create a new environment
virtualenv hea_ml
# Activate environment
source hea_ml/bin/activate
# Install dependencies
pip install autopep8 astropy matplotlib numpy pandas scipy
Create a CSV containing vectors of inputs.
python dataset/prepare_inputs.py -s <count> -o <path_to_csv>
Create a config.json
using a template under config_files/dataset/template.json
.
Update the file to use the <path_to_csv>
of the previous step.
Then run:
python dataset/generate_dataset.py -c config.json
- Single run: Use a
config
file underconfig_files/spectrum/tune
.python ml/tune.py -c <config>
- Single type run: Choose a
type
among the following{dnn, rnn, gru, lstm}
. This will run all config files underconfig_files/spectrum/tune/<type>
../train.sh -m tune -t <type>
- Single run: Use a
config
file underconfig_files/spectrum/train
.python ml/train.py -c `<config>`
- Single type run: Choose a
type
among the following{dnn, rnn, gru, lstm}
. This will run all config files underconfig_files/spectrum/train/<type>
../train.sh -m train -t <type>
conda deactivate
rm -rf hea_ml