We first need to create the env by
conda env create -f environment.yml
Then activate the env by
conda activate CMM
Please use train_model.py
to train the model.
To train the model
python train_model --data_path DATA_path(i.e. BR0_data.csv) --meta_path(i.e. BR0_meta.csv)
One may use the pretrained scaler and model (trained over 10,000 epochs):
- Get the scaler and model params from CMM DAE
- Use the following instructions (please modify the path):
python getData --data_path .\BR0_data.csv --scaler_path .\scaler.joblib --model_path .\DAE.pth --output_path D:\cm\CMM-Proj
- We will get
output.npy
as the output, whose dims is (input.shape[0], 128).