Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danaugrs/go-tsne
/ functions
Functions
21 in github.com/danaugrs/go-tsne
⨍
Functions
21
◇
Types & classes
2
↓ 3 callers
Function
SquaredDistanceMatrix
SquaredDistanceMatrix computes the squared distance matrix for row vectors in X. Returns a matrix where the {i, j}-th element is the squared euclidean
tsne/tsne.go:308
↓ 2 callers
Function
CSVmatrix
(filepath string)
examples/mnist2d/util.go:19
↓ 2 callers
Function
CSVmatrix
(filepath string)
examples/mnist3d/util.go:19
↓ 2 callers
Method
EmbedData
EmbedData initializes the pairwise affinity matrix P with the similarity probabilities calculated based on the provided data matrix and runs t-SNE. It
tsne/tsne.go:56
↓ 2 callers
Method
scaleSprites
scaleSprites scales all the sprites to match spriteScale.
examples/mnist3d/mnist3d.go:169
↓ 1 callers
Function
Diagonal
Diagonal returns the diagonal elements of the specified matrix as a Vector.
tsne/tsne.go:289
↓ 1 callers
Method
EmbedDistances
InitDistances initializes the pairwise affinity matrix P with the similarity probabilities calculated based on the provided (squared) distance matrix
tsne/tsne.go:65
↓ 1 callers
Function
LoadMNIST
()
examples/mnist2d/util.go:14
↓ 1 callers
Function
LoadMNIST
()
examples/mnist3d/util.go:14
↓ 1 callers
Function
RandNormal
Utility functions RandNormal samples from a Gaussian distribution with the specified mean and standard deviation.
tsne/tsne.go:283
↓ 1 callers
Method
costGradient
costGradient computes the Kullback-Leibler divergence between P and the Student-t based joint probability distribution Q. It also computes the gradien
tsne/tsne.go:225
↓ 1 callers
Method
createDigitSprites
createDigitSprites creates a sprite for each digit in the dataset.
examples/mnist3d/mnist3d.go:201
↓ 1 callers
Method
d2p
d2p computes the P matrix based on a (squared) distance matrix D. It performs a binary search to obtain a similarity probability for each pairwise dis
tsne/tsne.go:106
↓ 1 callers
Method
initSolution
initSolution initializes the t-SNE solution.
tsne/tsne.go:81
↓ 1 callers
Function
plotY2D
plotY2D plots the 2D embedding Y and saves an image of the plot with the specified filename.
examples/mnist2d/mnist2d.go:57
↓ 1 callers
Method
run
run performs batch gradient descent to reduce the Kullback-Leibler divergence between P and Q, the high dimensional affinities and the low dimensional
tsne/tsne.go:191
↓ 1 callers
Method
updateSprites
updateSprites updates the position of the sprites based on the specified embedding matrix.
examples/mnist3d/mnist3d.go:177
Function
NewTSNE
NewTSNE creates and returns a new t-SNE dimensionality reductor with the specified parameters.
tsne/tsne.go:42
Function
TestSquaredDistanceMatrix
TestSquaredDistanceMatrix verifies that SquaredDistanceMatrix is behaving properly.
tsne/tsne_test.go:12
Function
main
()
examples/mnist2d/mnist2d.go:21
Function
main
()
examples/mnist3d/mnist3d.go:43