.. index:: single: tsne_projection
.. _tsne_projection/0:

.. rst-class:: right

**object**

``tsne_projection``
===================

Exact t-distributed Stochastic Neighbor Embedding dimension reducer for continuous datasets.

| **Availability:** 
|    ``logtalk_load(tsne_projection(loader))``

| **Author:** Paulo Moura
| **Version:** 2:1:0
| **Date:** 2026-10-21

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Imports:**
|    ``public`` :ref:`dimension_reducer_common <dimension_reducer_common/0>`
| **Provides:**
|    :ref:`logtalk::message_tokens//2 <logtalk/0::message_tokens//2>`
| **Uses:**
|    :ref:`avltree <avltree/0>`
|    :ref:`fast_random(Algorithm) <fast_random/1>`
|    :ref:`format <format/0>`
|    :ref:`linear_algebra <linear_algebra/0>`
|    :ref:`list <list/0>`
|    :ref:`logtalk <logtalk/0>`
|    :ref:`pairs <pairs/0>`
|    :ref:`population <population/0>`
|    :ref:`type <type/0>`
|    :ref:`user <user/0>`

| **Remarks:**
|    (none)

| **Inherited public predicates:**
|     :ref:`dimension_reducer_protocol/0::check_dimension_reducer/1`  :ref:`options_protocol/0::check_option/1`  :ref:`options_protocol/0::check_options/1`  :ref:`options_protocol/0::default_option/1`  :ref:`options_protocol/0::default_options/1`  :ref:`dimension_reducer_protocol/0::diagnostic/2`  :ref:`dimension_reducer_protocol/0::diagnostics/2`  :ref:`dimension_reducer_protocol/0::dimension_reducer_options/2`  :ref:`dimension_reducer_protocol/0::export_to_clauses/4`  :ref:`dimension_reducer_protocol/0::export_to_file/4`  :ref:`dimension_reducer_protocol/0::learn/2`  :ref:`dimension_reducer_protocol/0::learn/3`  :ref:`options_protocol/0::option/2`  :ref:`options_protocol/0::option/3`  :ref:`dimension_reducer_protocol/0::print_dimension_reducer/1`  :ref:`dimension_reducer_protocol/0::transform/3`  :ref:`dimension_reducer_protocol/0::valid_dimension_reducer/1`  :ref:`options_protocol/0::valid_option/1`  :ref:`options_protocol/0::valid_options/1`  

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(no local declarations; see entity ancestors if any)

Protected predicates
--------------------

(no local declarations; see entity ancestors if any)

Private predicates
------------------

.. index:: gradient_matrix/6
.. _tsne_projection/0::gradient_matrix/6:

``gradient_matrix/6``
^^^^^^^^^^^^^^^^^^^^^

Computes the unfused training gradient matrix as a utility for tests and benchmarks.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``gradient_matrix(Probabilities,Weights,WeightSum,Embedding,ProbabilityScale,Gradients)``
| **Mode and number of proofs:**
|    ``gradient_matrix(+list(list(number)),+list(list(number)),+number,+list(list(number)),+number,-list(list(number)))`` - ``one``


------------

Operators
---------

(none)

.. seealso::

   :ref:`kernel_pca_projection <kernel_pca_projection/0>`, :ref:`pca_projection <pca_projection/0>`, :ref:`random_projection <random_projection/0>`

