diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index 9e049360..bf361dd3 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -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