class_docstr: Implements "Batch Active learning by Diverse Gradient Embedding" (BADGE) [AZK+20]_.
      
class_docstr_tok: ["Implements","``","Batch","Active","learning","by","Diverse","Gradient","Embedding","''","(","BADGE",")","[","AZK+20","]","_","."]
code: def __str__(self):
      return f"BADGE(num_classes={self.num_classes})"
  
imports: import numpy
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
  from small_text.query_strategies import constraints, QueryStrategy, EmbeddingBasedQueryStrategy
  from small_text.utils.clustering import init_kmeans_plusplus_safe
  from small_text.utils.context import build_pbar_context
  from small_text.utils.data import list_length
label_desc: Use image node_id 4 for calling the BADGE obj's underlying member method code with example usage: obj.__str__() and returns: str, self, str