Skip to content

Commit

Permalink
fixed Figure: dropout. Denominator was only dominant clone cells, not…
Browse files Browse the repository at this point in the history
… all
  • Loading branch information
Isaac Shamie committed Oct 30, 2020
1 parent 4a8b6b0 commit 89eb0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulations/fullsimulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def sim_performance_dominant(self, group='both'):
y_true[y_true != 1] = 0 # Set nondominant clones to 0
rocs.append(roc_curve(y_true, cell_af))
prec_scores.append(average_precision_score(y_true, cell_af))
dropout.append((cell_af[clones==1]==0).sum()/cell_af.shape[0])
dropout.append((cell_af[clones==1]==0).sum()/cell_af[clones==1].shape[0])

self.dropout = dropout
self.prec_scores = prec_scores
Expand Down

0 comments on commit 89eb0b1

Please sign in to comment.