Created
May 30, 2020 13:57
-
-
Save oborchers/2f9826e5275dabef071ae44ab8860b82 to your computer and use it in GitHub Desktop.
This file contains 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
exclusion_matrix = random_sparse( | |
m = replications, # Number of subsampled datasets | |
n = len(X), # Length of training data | |
density = p_excluded/100., # Percentage of excluded observations | |
format = "csr", | |
dtype = bool, # True = Excluded | |
random_state=random_state, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment