# NOT RUN {
dat <- loadDataSet("3D S Curve")
## use the S4 Class directly:
autoenc <- AutoEncoder()
emb <- autoenc@fun(dat, autoenc@stdpars)
## simpler, use embed():
emb2 <- embed(dat, "AutoEncoder")
plot(emb, type = "2vars")
samp <- sample(floor(nrow(dat) / 10))
embsamp <- autoenc@fun(dat[samp], autoenc@stdpars)
embother <- embsamp@apply(dat[-samp])
plot(embsamp, type = "2vars")
points(embother@data)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab