class_docstr: Create an analysis model with the a top level Analysis containing all landmarks at the highest scale
  
  Parameters
  ----------
  hsne : HSne 
      The python HSne wrapper class
  embedder_type : :class:`hsne_analysis.EmbedderType`
      The embedder to be used when creating a new analysis CPU or GPU
      
  Examples
  --------
  Initialize a model using loaded :class:`HSne` data. 
  
  >>> import nptsne
  >>> model = nptsne.hsne_analysis.AnalysisModel(sample_hsne, nptsne.hsne_analysis.EmbedderType.CPU)
  >>> model.top_scale_id
  2
  
  Attributes
  ----------
  top_analysis
  analysis_container
  bottom_scale_id
  top_scale_id
  
  See Also
  --------
  hsne_analysis.Analysis
  hsne_analysis.EmbedderType.CPU
  
  Notes
  -----
  The hsne_analysis.AnalysisModel contains the user driven selections 
  when exploring an HSNE hierarchy. The AnalysisModel is created
  with a top level default hsne_analysis.Analysis containing all top level landmarks.
class_docstr_tok: ["Create","an","analysis","model","with","the","a","top","level","Analysis","containing","all","landmarks","at","the","highest","scale","Parameters","--","--","--","--","--","hsne",":","HSne","The","python","HSne","wrapper","class","embedder_type",":",":","class",":","`","hsne_analysis.EmbedderType","`","The","embedder","to","be","used","when","creating","a","new","analysis","CPU","or","GPU","Examples","--","--","--","--","Initialize","a","model","using","loaded",":","class",":","`","HSne","`","data",".",">",">",">","import","nptsne",">",">",">","model","=","nptsne.hsne_analysis.AnalysisModel","(","sample_hsne",",","nptsne.hsne_analysis.EmbedderType.CPU",")",">",">",">","model.top_scale_id","2","Attributes","--","--","--","--","--","top_analysis","analysis_container","bottom_scale_id","top_scale_id","See","Also","--","--","--","--","hsne_analysis.Analysis","hsne_analysis.EmbedderType.CPU","Notes","--","--","-","The","hsne_analysis.AnalysisModel","contains","the","user","driven","selections","when","exploring","an","HSNE","hierarchy",".","The","AnalysisModel","is","created","with","a","top","level","default","hsne_analysis.Analysis","containing","all","top","level","landmarks","."]
docstr: Remove the analysis and all children
  Returns
  -------
  list
      list of deleted ids
  
  Examples
  --------
  >>> import nptsne
  >>> model = nptsne.hsne_analysis.AnalysisModel(sample_hsne, nptsne.hsne_analysis.EmbedderType.CPU)
  >>> sel = np.arange(int(model.top_analysis.number_of_points / 2))
  >>> analysis = model.add_new_analysis(model.top_analysis, sel)
  >>> id = analysis.id
  >>> a_list = model.remove_analysis(analysis.id)
  >>> a_list == [id]
docstr_tok: ["Remove","the","analysis","and","all","children","Returns","--","--","--","-","list","list","of","deleted","ids","Examples","--","--","--","--",">",">",">","import","nptsne",">",">",">","model","=","nptsne.hsne_analysis.AnalysisModel","(","sample_hsne",",","nptsne.hsne_analysis.EmbedderType.CPU",")",">",">",">","sel","=","np.arange","(","int","(","model.top_analysis.number_of_points","\/","2",")",")",">",">",">","analysis","=","model.add_new_analysis","(","model.top_analysis",",","sel",")",">",">",">","id","=","analysis.id",">",">",">","a_list","=","model.remove_analysis","(","analysis.id",")",">",">",">","a_list","==","[","id","]"]
code: def remove_analysis(self, id):
      """Remove the analysis and all children
      Returns
      -------
      list
          list of deleted ids
  
      Examples
      --------
      >>> import nptsne
      >>> model = nptsne.hsne_analysis.AnalysisModel(sample_hsne, nptsne.hsne_analysis.EmbedderType.CPU)
      >>> sel = np.arange(int(model.top_analysis.number_of_points / 2))
      >>> analysis = model.add_new_analysis(model.top_analysis, sel)
      >>> id = analysis.id
      >>> a_list = model.remove_analysis(analysis.id)
      >>> a_list == [id]
      """
      return self._analysis_container.remove_analysis(id)
  
file_path: nptsne/src/nptsne/hsne_analysis/analysis_model.py
imports: from ..libs._nptsne._hsne_analysis import EmbedderType, Analysis
  import numpy
label_desc: Use image node_id 7 for calling the AnalysisModel obj's underlying member method code with example usage: obj.remove_analysis(id) and returns: self