# NOT RUN {
dat <- loadDataSet("Iris")
set.seed(4646)
factorization <- embed(dat, "NNMF")
proj_dat <- factorization@apply(dat)
plot(proj_dat@data[, 1], proj_dat@data[, 2])
# project new values:
nn_proj <- predict(factorization, iris[1:7, 1:4])
nn_proj
# }
Run the code above in your browser using DataLab