Description Details Objects from the Class Slots Method Author(s) References See Also Examples
An S4 Class for qtSNE.
The qtSNE is a method that uses Qkernel t-Distributed Stochastic Neighborhood Embedding between the distance matrices in high and low-dimensional space to embed the data. The method is very well suited to visualize complex structures in low dimensions.
Objects can be created by calls of the form new("qtSNE", ...)
.
or by calling the function qtSNE
.
dimRed
Matrix containing the new representations for the objects after qtSNE
cndkernf
The kernel function used
dimRed
signature(object="qtSNE")
: return a new representation matrix
cndkernf
signature(object="qtSNE")
: return the kernel used
Yusen Zhang
yusenzhang@126.com
Maaten, L. van der, 2014. Accelerating t-SNE using Tree-Based Algorithms. Journal of Machine Learning Research 15, 3221-3245.
van der Maaten, L., Hinton, G., 2008. Visualizing Data using t-SNE. J. Mach. Learn. Res. 9, 2579-2605.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
#use iris data set
data(iris)
testset <- sample(1:150,20)
train <- as.matrix(iris[,1:4])
colors = rainbow(length(unique(iris$Species)))
names(colors) = unique(iris$Species)
#for matrix
ecb = function(x,y){
plot(x,t='n');
text(x,labels=iris$Species, col=colors[iris$Species])
}
kpc2 <- qtSNE(train, kernel = "rbfbase", qpar = list(sigma=1,q=0.8),
epoch_callback = ecb, perplexity=10, max_iter = 500)
#cndernf
cndkernf(kpc2)
#dimRed
plot(dimRed(kpc2),col=train)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.