-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
maskomic
committed
Oct 10, 2023
1 parent
4e3f125
commit 37a0ae2
Showing
16 changed files
with
272 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
#SBATCH --partition=cpu | ||
#SBATCH --time=24:00:00 | ||
#SBATCH --nodes=1 --ntasks-per-node=1 --cpus-per-task=2 | ||
#SBATCH --mem=10G | ||
|
||
MAX_SEED=$1 | ||
DATASET=$2 | ||
ANOMALY_CLASSES=$3 | ||
METHOD=$4 | ||
CONTAMINATION=$5 | ||
|
||
module load Julia/1.7.3-linux-x86_64 | ||
|
||
julia --project ./hmil_classifier.jl ${MAX_SEED} $DATASET ${ANOMALY_CLASSES} $METHOD $CONTAMINATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
MNIST | ||
ModelNet10 | ||
modelnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# This runs MNIST on slurm. | ||
# USAGE EXAMPLE | ||
# ./run_parallel_mnist.sh statistician 50 10 2 leave-one-in 0 | ||
# Run from this folder only. | ||
MODEL=$1 # which model to run | ||
NUM_SAMPLES=$2 # how many repetitions | ||
MAX_SEED=$3 # how many folds over dataset | ||
NUM_CONC=$4 # number of concurrent tasks in the array job | ||
|
||
LOG_DIR="${HOME}/logs/${MODEL}" | ||
|
||
if [ ! -d "$LOG_DIR" ]; then | ||
mkdir $LOG_DIR | ||
fi | ||
|
||
for class in bathtub bed chair desk dresser monitor night_stand sofa table toilet | ||
do | ||
# submit to slurm | ||
sbatch \ | ||
--array=1-${NUM_SAMPLES}%${NUM_CONC} \ | ||
--output="${LOG_DIR}/modelnet_$METHOD-%A_%a.out" \ | ||
./${MODEL}.sh $MAX_SEED "modelnet" 1 $class 0 | ||
done | ||
|
||
# for local testing | ||
# ./${MODEL}_run.sh $MAX_SEED "MNIST" $METHOD 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/bin/bash | ||
#SBATCH --partition=cpulong | ||
#SBATCH --time=48:00:00 | ||
#SBATCH --nodes=1 --ntasks-per-node=1 --cpus-per-task=10 | ||
#SBATCH --mem=100G | ||
#SBATCH --nodes=1 --ntasks-per-node=2 | ||
#SBATCH --mem=10G | ||
|
||
MAX_SEED=$1 | ||
DATASET=$2 | ||
ANOMALY_CLASSES=$3 | ||
METHOD=$4 | ||
CONTAMINATION=$5 | ||
|
||
module load Julia/1.7.2-linux-x86_64 | ||
module load Julia/1.7.3-linux-x86_64 | ||
|
||
julia --threads 10 ./statistician.jl ${MAX_SEED} $DATASET ${ANOMALY_CLASSES} $METHOD $CONTAMINATION | ||
julia --project ./statistician.jl ${MAX_SEED} $DATASET ${ANOMALY_CLASSES} $METHOD $CONTAMINATION |
Oops, something went wrong.