bdm.save: Save bdm instance

Description Usage Arguments Value Examples

View source: R/bdm_main.R

Description

Saves a bdm instance with default path/file names, as given by bdm.mybdm()/bdm.fName(bdm). Default file name is generated based on bdm$dSet and ptSNE main parameters (threads, layers, boost, rounds, perplexity). The purpose of functions bdm.save() and bdm.scp() used with bdm.fName() is to ease the task of working/organizing multiple runs on the same dataset.

Usage

1

Arguments

...

A bdm instance as generated by bdm.init().

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# --- get a matrix with raw-data
mydata <- cbind(rnorm(10000, mean = 0, sd = 3),  ncol = 2)
mylabels <- apply(mydata, 1, function(row) round(sqrt(sum(row**2)), 0))
# --- create a \var{bdm} instance with our raw-data matrix
mybdm <- bdm.init('mydataset', mydata, labels = mylabels)
str(mybdm)
# --- save it
## Not run: 
bdm.save(mybdm)

## End(Not run)

bigMap documentation built on July 8, 2020, 6:41 p.m.