Created
July 26, 2020 17:09
-
-
Save vaibhavgehani/b85f02c3b760cbfdd2c568b7786a1e54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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