hyrax.verbs.reduction_algorithms.tsne
=====================================

.. py:module:: hyrax.verbs.reduction_algorithms.tsne


Attributes
----------

.. autoapisummary::

   hyrax.verbs.reduction_algorithms.tsne.logger


Classes
-------

.. autoapisummary::

   hyrax.verbs.reduction_algorithms.tsne.TSNE


Module Contents
---------------

.. py:data:: logger

.. py:class:: TSNE(config: dict, reduction_results=None)

   Bases: :py:obj:`hyrax.verbs.reduction_algorithms.algorithm_registry.ReductionAlgorithm`


   TSNE reduction implementation.


   .. py:attribute:: reducer


   .. py:method:: save_model(_)

      TSNE does not support saving the model. This method is a no-op.



   .. py:method:: load_model(_)

      TSNE does not support loading a pre-existing model. This method is a no-op.



   .. py:method:: fit(_)

      TSNE does not support a separate fitting stage. This method is a no-op.



   .. py:method:: transform(args: dict, num_batches: int)

      Fit and transform data with TSNE model.

      :param args: A dictionary containing the data to be transformed.
      :type args: dict
      :param num_batches: The total number of batches that the data is split into for transformation.
      :type num_batches: int



   .. py:method:: _fit_transform_batch(batch_tuple: tuple)

      Private helper to fit_transform a single batch

      :param batch_tuple: first element is the IDs of the batch as a numpy array
                          second element is the inference results to transform as a numpy array with shape (batch_len, N)
                          where N is the total number of dimensions in the inference result. Caller flattens all inference
                          result axes for us.
      :type batch_tuple: tuple()

      :returns: first element is the ids of the batch as a numpy array
                second element is the results of running the tsne transform on the input as a numpy array.
      :rtype: tuple



