Last active
February 1, 2020 16:03
-
-
Save CVxTz/12fc23b6eb72b96a861ce0d99e0b1592 to your computer and use it in GitHub Desktop.
First batch - Active Learning
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
step_sizes = [128]*20 # Succesive batch sizes | |
unused_samples = list(range(X.shape[0])) # Indexes of samples that were not used for training yet | |
step = np.random.choice(unused_samples, size=512).tolist() # First batch | |
used_samples = step # Indexes of samples that were used for training | |
unused_samples = list(set(unused_samples) - set(step)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment