Skip to content

Commit

Permalink
Using a common syntax for both cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Oct 31, 2024
1 parent 57c80de commit a0f7f84
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bash_scripts/run_evaluation_array.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ MLFLOW_FOLDER=/ceph/zoo/users/sminano/ml-runs-all/ml-runs-scratch

# ------------------
# List of models to evaluate
# Option 1: to evaluate all epoch-checkpoints of an MLflow run,
# uncomment the following two lines:
# Example 1: to evaluate all epoch-checkpoints of an MLflow run,
# MLFLOW_CKPTS_FOLDER=/ceph/zoo/users/sminano/ml-runs-all/ml-runs/317777717624044570/7a6d5551ca974d578a293928d6385d5a/checkpoints
# LIST_CKPT_FILES=("$MLFLOW_CKPTS_FOLDER"/*.ckpt)
# CKPT_FILENAME=*.ckpt

# Option 2: to evaluate all 'last' checkpoints of an MLflow experiment,
# uncomment the following two lines:
MLFLOW_CKPTS_FOLDER=/ceph/zoo/users/sminano/ml-runs-all/ml-runs-scratch/763954951706829194/*/checkpoints
mapfile -t LIST_CKPT_FILES < <(find $MLFLOW_CKPTS_FOLDER -type f -name "last.ckpt")

# Can I use one option only?
# Example 2: to evaluate all 'last' checkpoints of an MLflow experiment,
# MLFLOW_CKPTS_FOLDER=/ceph/zoo/users/sminano/ml-runs-all/ml-runs-scratch/763954951706829194/*/checkpoints
# CKPT_FILENAME=*.ckpt # or last.ckpt
# mapfile -t LIST_CKPT_FILES < <(find "$MLFLOW_CKPTS_FOLDER" -type f -name "$CKPT_FILENAME")
# CKPT_FILENAME=last.ckpt

# NOTE: if the paths have spaces, but quotes around the string, but stopping and re-starting at the wildcard.
# e.g.: "/ceph/zoo/users/sminano/ml-runs-all/ml-runs-scratch/763954951706829194/"*"/checkpoints"

MLFLOW_CKPTS_FOLDER=/ceph/zoo/users/sminano/ml-runs-all/ml-runs/317777717624044570/7a6d5551ca974d578a293928d6385d5a/checkpoints
CKPT_FILENAME=*.ckpt
mapfile -t LIST_CKPT_FILES < <(find $MLFLOW_CKPTS_FOLDER -type f -name $CKPT_FILENAME)
#-------------------

# selected model
Expand Down

0 comments on commit a0f7f84

Please sign in to comment.