This file contains hidden or 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
#!/bin/bash | |
# dummy script to simulate the slurm | |
# parse and ignore slurm arguments | |
# FIXME: add more arguments | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
--nodelist=*) | |
;; |
This file contains hidden or 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
#!/bin/bash | |
gpu=$(python get_free_gpu.py $@) | |
until [ ! -z "$gpu" ] | |
do | |
sleep 5 | |
gpu=$(python get_free_gpu.py $@) | |
done | |
echo $gpu |
This file contains hidden or 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
# Experimental Submitters for Ducttape |
This file contains hidden or 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
import argparse | |
from math import prod | |
sensitivity = 0.42 | |
specificity = 0.984 | |
p_t = [[specificity, 1 - sensitivity], [1 - specificity, sensitivity]] | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser() |
This file contains hidden or 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
Code used for the 11-724's Homework 7 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
import "submitters/scslurm.tape" | |
task DumpHFDataset | |
> dataset_json=dataset.json | |
:: dataset_name=@ | |
:: dataset_path=@ | |
:: dataset_dirs=@ | |
:: dataset_stream=@ | |
:: filter=@ | |
:: percentile=@ |