NNSOM.plots.SOMPlots.plot

SOMPlots.plot(plot_type, data_dict=None, ind=None, target_class=None, use_add_array=False, **kwargs)[source]

Generic Plot Function. It generates a plot based on the plot type and data provides.

Parameters:
  • plot_type (str) – The type of plot to be generated: [“top”, “top_num”, “hit_hist”, “gray_hist”, “color_hist”, “complex_hist”, “nc”, “neuron_dist”, “simple_grid”, “stem”, “pie”, “wgts”, “pie”, “hist”, “box”, “violin”, “scatter”, “component_positions”, “component_planes”]

  • data_dict (dict (optional)) – A dictionary containing the data to be plotted. The key is prefixed with the data type and the value is the data itself. {“data”, “target”, “clust”, “add_1d_array”, “add_2d_array”}

  • ind (int, str or array-like (optional)) – The indices of the data to be plotted.

  • target_class (int (optional)) – The target class to be plotted.

  • use_add_array (bool (optional)) – If true, the additional array to be used.

  • **kwargs (dict) – Additional arguments to be passed to the interactive plot function.