jimmyjbling / Smorgasbord

1 stars 0 forks source link

how does the threshold_plot_2 figure work? #40

Closed jimmyjbling closed 2 years ago

jimmyjbling commented 2 years ago

lol @joshhochuli how does this thing work maybe I'm too drunk and tired but I cannot figure it out

joshhochuli commented 2 years ago

I'm gonna need some clarity on this question

jimmyjbling commented 2 years ago

like the code how does that for loop that goes through each datapoint individually work? how do you get the ppv of a single data point

joshhochuli commented 2 years ago

the outer for loop only applies when there are multiple sets of predictions (e.g. one for each test fold).

so the variable y_pred might look like ([0.2,0.3,0.2],[0.1,0.5,0.5],[0.1,0.9.0.1]) for a three fold split. then stats are calculated after thresholding each of those prediction vectors at all of the possible values (0.01,0.02,...,0.98,0.99)

then a big old pile of means and standard deviations

jimmyjbling commented 2 years ago

oh i see I'll have to clone it and change it a bit to get it to work with how my plate2 things is functioning them