Skip to content
Closed
23 changes: 23 additions & 0 deletions configs/local_bb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
env:
id: "simglucose/multi-patient-v0"
entry_point: "simglucose.envs:T1DSimGymnaisumEnv"
max_episode_steps: 10000
patient_name: "all" # Use all available patients, can also be a list of patient names or a single patient name
discrete_action_space: False
discrete_observation_space: False
seed: 42
model_name: "BB"
action_noise:
mean: 0
sigma: 0.25
model:
kwargs:
target: 140
eval:
eval_freq: 5000
n_eval_episodes: 5
predict:
predict_steps: 1000
device: "cpu"
run_directory: "./runs/local_bb"
mode: ["predict", "analyze"]
26 changes: 26 additions & 0 deletions configs/local_pid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
env:
id: "simglucose/multi-patient-v0"
entry_point: "simglucose.envs:T1DSimGymnaisumEnv"
max_episode_steps: 1000
patient_name: "all" # Use all available patients, can also be a list of patient names or a single patient name
discrete_action_space: False
discrete_observation_space: False
seed: 42
model_name: "PID"
action_noise:
mean: 0
sigma: 0.25
model:
kwargs:
P: 0.0005
I: 0
D: 0.05
target: 140
eval:
eval_freq: 5000
n_eval_episodes: 5
device: "cpu"
predict:
predict_steps: 1000
run_directory: "./runs/local_pid"
mode: ["predict", "analyze"]
Binary file added runs/local_bb/results/analysis/BG_trace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runs/local_bb/results/analysis/CVGA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions runs/local_bb/results/analysis/CVGA_stats.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
,A,B,C,D,E
0,0.06666666666666667,0.4666666666666667,0.13333333333333333,0.26666666666666666,0.06666666666666667
31 changes: 31 additions & 0 deletions runs/local_bb/results/analysis/performance_stats.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
,70<=BG<=180,BG>180,BG<70,BG>250,BG<50,LBGI,HBGI,Risk Index
adult#004_predict,99.20079920079921,0.7992007992007992,0.0,0.0,0.0,0.21490941265954266,1.2509202355481723,1.4658296482077149
child#002_predict,72.92707292707293,13.386613386613385,13.686313686313687,5.594405594405594,11.888111888111888,9.09110712213512,3.678464974110325,12.769572096245447
adolescent#007_predict,74.62537462537463,25.374625374625374,0.0,6.993006993006993,0.0,0.2555536573895282,5.754775423117888,6.010329080507415
adolescent#002_predict,90.30969030969031,9.69030969030969,0.0,0.0,0.0,0.6247779994882068,2.542434368588921,3.167212368077128
adult#008_predict,75.52447552447552,7.792207792207792,16.683316683316683,0.0,9.79020979020979,5.766231768151,1.9632649941323534,7.729496762283353
child#007_predict,38.06193806193806,40.55944055944056,21.37862137862138,31.368631368631366,13.286713286713287,7.3696930668581295,15.265753740017736,22.635446806875866
adult#001_predict,100.0,0.0,0.0,0.0,0.0,0.6464695884804519,0.5779812497596385,1.22445083824009
child#004_predict,73.02697302697302,0.0,26.973026973026975,0.0,8.191808191808192,7.10465691480109,0.11713139330986615,7.221788308110956
adult#002_predict,98.6013986013986,1.3986013986013985,0.0,0.0,0.0,0.05400280277830232,1.6075040474787405,1.6615068502570431
adolescent#008_predict,89.5104895104895,10.48951048951049,0.0,0.0,0.0,0.49294947040845405,2.7568081950266308,3.249757665435085
adolescent#001_predict,58.84115884115884,32.26773226773227,8.89110889110889,5.4945054945054945,0.0,1.4488346613942238,6.3425268955052205,7.791361556899445
child#008_predict,78.72127872127872,4.9950049950049955,16.283716283716284,0.0,3.796203796203796,3.6200352969072758,1.1923621298597826,4.81239742676706
adolescent#004_predict,75.82417582417582,24.175824175824175,0.0,4.295704295704296,0.0,0.49732243223167694,4.7937209279236255,5.291043360155302
adult#007_predict,100.0,0.0,0.0,0.0,0.0,0.5933770996120123,0.6869620225848739,1.280339122196886
child#001_predict,76.32367632367632,2.197802197802198,21.47852147852148,0.0,6.193806193806194,4.451763755844405,1.2772792663481982,5.729043022192602
child#006_predict,89.41058941058941,0.0,10.589410589410589,0.0,0.0,2.584261386275398,0.14764722992054108,2.7319086161959394
adult#009_predict,90.5094905094905,9.490509490509492,0.0,0.0,0.0,0.3914403288124173,2.7020463598925115,3.093486688704928
adolescent#003_predict,81.01898101898102,13.886113886113884,5.094905094905095,0.0,0.0,1.2034891961849037,3.167777391198366,4.37126658738327
adolescent#006_predict,62.13786213786214,35.66433566433567,2.197802197802198,9.69030969030969,0.0,0.7335949424918045,7.163898138023101,7.897493080514904
adult#010_predict,77.62237762237763,9.19080919080919,13.186813186813188,0.2997002997002997,0.0,3.025059815513631,1.7566162129254321,4.781676028439062
child#003_predict,42.65734265734265,0.0,57.34265734265735,0.0,27.072927072927072,17.40389984071244,0.23972078580671152,17.643620626519155
adult#005_predict,92.10789210789211,7.892107892107893,0.0,0.0,0.0,0.3212567652725404,2.0717996079445182,2.3930563732170587
adolescent#010_predict,90.30969030969031,7.092907092907093,2.5974025974025974,0.0,0.0,1.0785911564112984,1.8767499501048208,2.9553411065161193
adult#006_predict,100.0,0.0,0.0,0.0,0.0,0.2619008218262945,0.8504580058815843,1.1123588277078789
adolescent#005_predict,96.8031968031968,3.196803196803197,0.0,0.0,0.0,0.019484982965892125,1.2626566306473022,1.2821416136131945
child#009_predict,66.63336663336663,21.37862137862138,11.988011988011989,8.49150849150849,0.0,1.9483113450692653,5.080573419823817,7.028884764893082
child#010_predict,100.0,0.0,0.0,0.0,0.0,0.23578266594150016,0.8763543440857314,1.112137010027232
adolescent#009_predict,100.0,0.0,0.0,0.0,0.0,0.3787254833387812,1.0262580903882825,1.4049835737270635
adult#003_predict,89.81018981018981,10.18981018981019,0.0,0.0,0.0,0.14230999247472687,2.180951607246008,2.3232615997207344
child#005_predict,71.12887112887113,13.286713286713287,15.584415584415584,1.898101898101898,2.5974025974025974,3.1679035950525845,2.665001732185539,5.832905327238124
Binary file added runs/local_bb/results/analysis/risk_stats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading