Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created June 12, 2019 17:21
Show Gist options
  • Save StrikingLoo/a6f7abee6af88a54981cad5ed72ab355 to your computer and use it in GitHub Desktop.
Save StrikingLoo/a6f7abee6af88a54981cad5ed72ab355 to your computer and use it in GitHub Desktop.
cat_quantity = sum(labels_valid)
for i in range(1,10):
print('threshold :'+str(.1*i))
print(sum(labels_valid[preds > .1*i])/labels_valid[preds > .1*i].shape[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment