docstr: This is the main method called from the optimization.
  
  Parameters
  ----------
  iteration: int
      The current iteration number.
  
  error: float
      The current KL divergence of the given embedding.
  
  embedding: TSNEEmbedding
      The current t-SNE embedding.
  
  Returns
  -------
  stop_optimization: bool
      If this value is set to ``True``, the optimization will be
      interrupted.
docstr_tok: ["This","is","the","main","method","called","from","the","optimization",".","Parameters","--","--","--","--","--","iteration",":","int","The","current","iteration","number",".","error",":","float","The","current","KL","divergence","of","the","given","embedding",".","embedding",":","TSNEEmbedding","The","current","t-SNE","embedding",".","Returns","--","--","--","-","stop_optimization",":","bool","If","this","value","is","set","to","``","True","``",",","the","optimization","will","be","interrupted","."]
code: def __call__(self, iteration, error, embedding):
      """This is the main method called from the optimization.
  
      Parameters
      ----------
      iteration: int
          The current iteration number.
  
      error: float
          The current KL divergence of the given embedding.
  
      embedding: TSNEEmbedding
          The current t-SNE embedding.
  
      Returns
      -------
      stop_optimization: bool
          If this value is set to ``True``, the optimization will be
          interrupted.
  
      """
  
file_path: openTSNE/openTSNE/callbacks.py
imports: import logging
  from functools import partial
  import numpy
  from scipy.sparse import csr_matrix
  from openTSNE import kl_divergence
  from openTSNE.tsne import TSNEEmbedding
label_desc: Use image node_id 2 for calling the Callback obj's underlying member method code with example usage: obj.__call__(iteration, error, embedding) without return types