Skip to content

Commit

Permalink
Ignore epochs in logging output.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
Rylie Weaver committed Sep 25, 2023
1 parent 0072dce commit 26a2541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions workflows/GA/swift/workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ mkdir -p $TURBINE_OUTPUT
EXP_DIR=$CANDLE_DATA_DIR/$TOKEN/Output/$EXPID # Establishing where to put
mkdir -pv $EXP_DIR
touch $EXP_DIR/output.csv # output file
grep -oP '"name": "\K[^"]*' $PARAM_SET_FILE | awk '{printf "%s,", $0}' >> $EXP_DIR/output.csv # get hyperparams for csv file columns
echo "run_id,val_loss" >> $EXP_DIR/output.csv # add run_id and val_loss to csv file columns
grep -oP '"name": "\K[^"]*' $PARAM_SET_FILE | grep -v "epochs" | awk '{printf "%s,", $0}' >> $EXP_DIR/output.csv # get hyperparams for csv file columns
echo "run_id,IMPROVE_RESULT" >> $EXP_DIR/output.csv # add run_id and IMPROVE_RESULT to csv file columns
cp $PARAM_SET_FILE $EXP_DIR # copy hyperparameter space file

sv_path_append $EMEWS_PROJECT_ROOT/data
Expand Down
2 changes: 1 addition & 1 deletion workflows/common/sh/model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ then
PARAMETERS=() # Initialize parameters
# Store parameters from MODEL_CMD except for nv, bind, and experiment_id
for i in "${!MODEL_CMD[@]}"; do
if [[ ${MODEL_CMD[i]} == --nv || ${MODEL_CMD[i]} == --bind || ${MODEL_CMD[i]} == --experiment_id ]]; then
if [[ ${MODEL_CMD[i]} == --nv || ${MODEL_CMD[i]} == --bind || ${MODEL_CMD[i]} == --experiment_id || ${MODEL_CMD[i]} == --epochs ]]; then
continue
fi
if [[ ${MODEL_CMD[i]} == --* ]]; then
Expand Down

0 comments on commit 26a2541

Please sign in to comment.