Skip to content

Instantly share code, notes, and snippets.

@vaibhavgehani
Created July 26, 2020 17:09
Show Gist options
  • Select an option

  • Save vaibhavgehani/b85f02c3b760cbfdd2c568b7786a1e54 to your computer and use it in GitHub Desktop.

Select an option

Save vaibhavgehani/b85f02c3b760cbfdd2c568b7786a1e54 to your computer and use it in GitHub Desktop.
threshold_factor = 0.8
threshold_positive = int(threshold_factor * len(features_positive))
threshold_negative = int(threshold_factor * len(features_negative))
features_train = features_positive[:threshold_positive]+features_negative[:threshold_negative]
features_test = features_positive[threshold_positive:]+features_negative[threshold_negative:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment