Projection is done by the neighbor retrieval visualizer (NeRV)
NeRV(Data, lambda = 0.1, neighbors = 20, iterations = 10, cg_steps = 2, cg_steps_final = 40, randominit = T, OutputDimension = 2,
PlotIt = FALSE, Cls)
OutputDimension-dimensional matrix of projected points
Numerical matrix of the Data to be projected, [1:n,1:d], nonsymmetric, and consists of n cases of d-dimensional data points with every case having d attributes, variables or features
Optional: Controls the trustworthiness-continuity tradeoff. Default = 0.1
Optional: Set the number of nearest neighbours that each point should have. Should be positive. Default = 20
Optional: The number of iterations to perform. Default = 10
Optional: The number of conjugate gradient steps to perform per iteration in NeRV's optimization scheme. Default = 2
Optional: The number of conjugate gradient steps to perform on the final iteration in NeRV's optimization scheme. Default = 40
Optional: TRUE: Random Initialization (default), FALSE: PCA initializiation
Optional: Number of dimensions in the Outputspace, default=2
Optional: Should the projected points be plotted? Default: FALSE. Note: this is only usefull if OutputDimension = 2.
Optional: Vector containing the number of the class for each row in Data. This is only used to color the points according to their classes if PlotIt = T
Michael Thrun, Felix Pape
Uses the NeRV projection with matrix Data and lambda. Lambda controls the trustworthiness-continuity tradeoff.
An short overview of different types of projection methods can be found in [Thrun, 2018, p.42, Fig. 4.1] (tools:::Rd_expr_doi("10.1007/978-3-658-20540-9")).
Jarkko Venna, Jaakko Peltonen, Kristian Nybo, Helena Aidos, and Samuel Kaski. Information Retrieval Perspective to Nonlinear Dimensionality Reduction for Data Visualization. Journal of Machine Learning Research, 11:451-490, 2010.
Jarkko Venna and Samuel Kaski. Nonlinear Dimensionality Reduction as Information Retrieval. In Marina Meila and Xiaotong Shen, editors, Proceedings of AISTATS 2007, the 11th International Conference on Artificial Intelligence and Statistics. Omnipress, 2007. JMLR Workshop and Conference Proceedings, Volume 2: AISTATS 2007.
data('Hepta')
Data=Hepta$Data
if (FALSE) {
Proj=NeRV(Data)
PlotProjectedPoints(Proj$ProjectedPoints,Hepta$Cls)
}
# \dontshow{
NeRV(Data[1:10,])
# }
Run the code above in your browser using DataLab