NeuralTSNE.MnistPlotter package

Submodules

NeuralTSNE.MnistPlotter.mnist_plot module

plot(data: ndarray, labels: ndarray, is_fashion: bool = False, img_file: str = None) None[source]View on GitHub

Plot t-SNE results of mnist dataset.

Parameters:
  • data (np.ndarray) – t-SNE data to be plotted.

  • labels (np.ndarray) – Labels corresponding to the data points.

  • is_fashion (bool, optional) – Flag indicating whether the dataset is a fashion dataset.

  • img_file (str, optional) – File path to save the plot as an image.

Note

This function plots the t-SNE results with colored points based on the provided labels.

plot_from_file(file: str, labels_file: str, is_fashion: bool = False) None[source]View on GitHub

Plot t-SNE results of mnist dataset from file.

Parameters:
  • file (str) – File path containing t-SNE data.

  • labels_file (str) – File path containing labels data.

  • is_fashion (bool, optional) – Flag indicating whether the dataset is a fashion dataset.

Note

This function reads t-SNE data and labels from files and plots the results using the plot function.

Module contents