Some cleanup before we start proper analysis

This commit is contained in:
Joshua Coles 2023-03-04 18:24:05 +00:00
parent 5b526ecc13
commit f01a4b8b6d
20 changed files with 14 additions and 2068 deletions

View File

@ -7,4 +7,4 @@ their reproduction.
```shell ```shell
./tools/stick-probability-specific-harness.bash $(seq 0.5 0.02 0.7) ./tools/stick-probability-specific-harness.bash $(seq 0.5 0.02 0.7)
``` ```

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,7 @@ import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import scipy import scipy
from glob import glob from glob import glob
import sys
def read_xy(path: str): def read_xy(path: str):
@ -60,7 +61,6 @@ def fd_of_dfs(dfs):
return np.mean(fds_clean), np.std(fds_clean) return np.mean(fds_clean), np.std(fds_clean)
import sys
print(sys.argv) print(sys.argv)
np.seterr(divide='ignore') np.seterr(divide='ignore')

View File

@ -1,4 +1,4 @@
REF=$(cd "/Users/joshuacoles/Developer/checkouts/jc3091/CompB DLA/rust-codebase/" && git rev-parse --short HEAD && cargo build --release) REF=$(cd "/Users/joshuacoles/Developer/checkouts/jc3091/CompB DLA/rust-codebase/" && git rev-parse --short HEAD && cargo build --release)
cp "/Users/joshuacoles/Developer/checkouts/jc3091/CompB DLA/rust-codebase/target/release/model" ./model-$REF cp "/Users/joshuacoles/Developer/checkouts/jc3091/CompB DLA/rust-codebase/target/release/model" ./model-$REF
#./tools/sp-harness.bash ./model-$REF rust-sp-$REF $(seq 0.2 0.4 1) #./tools/sp-harness.bash ./model-$REF rust-sp-$REF $(seq 0.2 0.4 1)
echo ./model-$REF created echo ./model-$REF created

View File

@ -1,16 +0,0 @@
#!/usr/bin/env bash
# NOTE: Requires GNU parallel
MODEL="models/rust-sp"
#MODEL=echo
mkdir -p data/rust-sp
PROBABILITIES=$@
for i in $PROBABILITIES; do
mkdir data/rust-sp/"$i"
done
MAX_PARTICLES=2000
parallel "$MODEL" '{1}' $MAX_PARTICLES '{2}' 'data/rust-sp/{2}/{1}.csv' ::: {1..100} ::: $PROBABILITIES

View File

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# NOTE: Requires GNU parallel
MODEL="models/stick-probability"
mkdir -p data/stick-probability
PROBABILITIES=$(seq 0.01 0.01 1)
for i in $PROBABILITIES; do
mkdir data/stick-probability/"$i"
done
MAX_PARTICLES=2000
parallel "$MODEL" '{1}' $MAX_PARTICLES '{2}' 'data/stick-probability/{2}/{1}.csv' ::: {1..100} ::: $PROBABILITIES

View File

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# NOTE: Requires GNU parallel
MODEL="models/stick-probability"
mkdir -p data/stick-probability
PROBABILITIES=$@
for i in $PROBABILITIES; do
mkdir data/stick-probability/"$i"
done
MAX_PARTICLES=2000
parallel "$MODEL" '{1}' $MAX_PARTICLES '{2}' 'data/stick-probability/{2}/{1}.csv' ::: {1..100} ::: $PROBABILITIES