elbamos / largeVis

An implementation of the largeVis algorithm for visualizing large, high-dimensional datasets, for R
340 stars 62 forks source link

mnist.Rda not included #33

Closed rozyang closed 7 years ago

rozyang commented 7 years ago

In Example 2, load("./mnist.Rda") does not work. At least the link of mnist.Rda should be given for downloading.

elbamos commented 7 years ago

I use this package https://cran.r-project.org/web/packages/neuralnet/index.html for mnist. The reason there's no link is that if I included the package in the example I'd have to list it as a dependency under cran's rules.

elbamos commented 7 years ago

I've added a note about this in the new version. Going to close this issue now. Please reopen if anything else comes up.

rozyang commented 7 years ago

Sorry, I still cannot get it work.

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

> library(deepnet) > data<-load.mnist("/home/rozyang/work/data/mnist/hyphen") > dim(data$train$x) [1] 60000 784 > library(largeVis) Loading required package: Matrix largeVis was compiled with 32-bit types. This will limit the size of the datasets it can process. Consider recompiling with -DARMA_64BIT_WORD > visObject <- largeVis(data$train$x, n_trees = 50, tree_th = 200, K = 50)

error: SpMat::SpMat(): invalid row or column index Error in eval(substitute(expr), envir, enclos) : SpMat::SpMat(): invalid row or column index In addition: Warning message: In largeVis(data$train$x, n_trees = 50, treeth = 200, K = 50) : The Distances between some neighbors are large enough to cause the calculation of p{j|i} to overflow. Scaling the distance vector.

elbamos commented 7 years ago

You have to actually transform the data - the steps are not shown in the example.

On Nov 28, 2016, at 6:44 AM, rozyang notifications@github.com wrote:

Sorry, I still cannot get it work.

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

library(deepnet) data<-load.mnist("/home/rozyang/work/data/mnist/hyphen") dim(data$train$x) [1] 60000 784 library(largeVis) Loading required package: Matrix largeVis was compiled with 32-bit types. This will limit the size of the datasets it can process. Consider recompiling with -DARMA_64BIT_WORD visObject <- largeVis(data$train$x, n_trees = 50, tree_th = 200, K = 50)

error: SpMat::SpMat(): invalid row or column index Error in eval(substitute(expr), envir, enclos) : SpMat::SpMat(): invalid row or column index In addition: Warning message: In largeVis(data$train$x, n_trees = 50, treeth = 200, K = 50) : The Distances between some neighbors are large enough to cause the calculation of p{j|i} to overflow. Scaling the distance vector.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

rozyang commented 7 years ago

Thanks. Now it works.