Update cml.yml

This commit is contained in:
quandanrepo 2023-08-19 18:18:53 +01:00 committed by GitHub
parent bc46d90bc2
commit 496fea20d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,22 +17,22 @@ jobs:
run: |
ls
cd model_data/simulation_system
pip install seaborn matplotlib
python3 -c "import seaborn as sns; import matplotlib.pyplot as plt; sns.scatterplot(data=[0,1,2,3]); plt.savefig('test.png')"
# pip install -r requirements.txt
# python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet
pip install -r requirements.txt
python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet
echo "## Residuals plot from model" > report.md
cd model_directory/RDSAP_CHANGE
echo "## Model metrics" > report.md
metrics_location=$(find . -maxdepth 10 -name "metrics.md")
echo $metrics_location
cat $metrics_location >> report.md
# echo "## Residuals plot from model" >> report.md
# metrics_location=$(find . -maxdepth 10 -name "residuals.png")
# echo $metrics_location
# cd $metric_location
echo "![](./test.png)" >> report.md
# echo "![](./residuals.png)" >> report.md
cml comment create --log debug --publish false report.md
cml comment create report.md
# cd model_directory/RDSAP_CHANGE
# echo "## Model metrics from registry" >> report.md
# cat model_registry.csv >> report.md
# cml comment create report.md
# cml comment create --log debug --publish false report.md