# this will assert the generation of necessary files
forfin["submission.csv","scores.csv"]:
ifnot(implementation.workspace_path/f).exists():
err_msg=f"{f} does not exist. The model is not dumped. Make sure that the required files, like submission.csv and scores.csv, are created even if you bypass the model training step by loading the saved model file directly."
returnCoSTEERSingleFeedback(
execution=err_msg,
return_checking=err_msg,
code=err_msg,
final_decision=False,
)
# Read the content of files submission.csv and scores.csv before execution
# Read the content of files submission.csv and scores.csv after execution
# Check if the content has changed
# excactly same checking. But it will take more user's time
ifscores_content_before!=scores_content_after:
return_msg="\n[Error] The content of scores.csv has changed. Please check the code to ensure that the model is dumped correctly, and rerun the code to use the model directly without retraining it."
# If the scores file changes, display the two contents and append it into the return_checking
return_msg="[Error] The content of submission.csv has changed. Please check the code to ensure that the model is dumped correctly, and rerun the code to use the model directly without retraining it."