Skip to content

sukhitashvili/Plotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

The module plots high dimensional vectors in 2 or 3 dimensional plots.

   my_plot = Plotter(dict, dict_keys_as_labels=True)
   
   Input args:
    
        - input_dict must be like: {'comedy' : [numpy_matrix, label_number, numpy_array_of_file_names],
                                    'action' : [numpy_matrix, label_number, numpy_array_of_file_names],
                                     .................................................................,
                                    }
        - by default dict keys are used in plot as class labels. keys might be helpful, but you can exclude them in plot
          by setting 'dict_keys_as_labels' to False. you could use any input_dict key (just don't dublicate them), 
          it's for your attention to see what classes you added and their labels;
        - 'numpy_matrix' must be 2 dimentional, samples in rows and their features in cols;
        - 'label_number' is just label integer. That integers are used at plot to generate colors. The numbers must be    started
          from zero;
        - 'numpy_array_of_file_names' must be a numpy vector of strings like : np.array(["comedy", "action", ...])

   my_plot.plot(dim='3d', func_type='tsne', figsize=(10,10))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages