Skip to content

Instantly share code, notes, and snippets.

@CVxTz
Last active February 1, 2020 16:03
Show Gist options
  • Save CVxTz/12fc23b6eb72b96a861ce0d99e0b1592 to your computer and use it in GitHub Desktop.
Save CVxTz/12fc23b6eb72b96a861ce0d99e0b1592 to your computer and use it in GitHub Desktop.
First batch - Active Learning
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