attractive — Attractive Forces
Attractive forces for SG-t-SNE-Pi (sparse PQ component).
attractive_forces(P, Y)
Compute attractive forces from sparse probability matrix P.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
csc_matrix of shape (n, n)
|
Sparse probability matrix. |
required |
Y
|
ndarray of shape (n, d)
|
Current embedding coordinates. |
required |
Returns:
| Type | Description |
|---|---|
ndarray of shape (n, d)
|
Attractive force on each point. |