Closed topepo closed 7 years ago
I don't fancy adding more parameters for printing, most methods already have too many and I don't have access to the internals of the methods that I did not implemented myself.
There is a generic way to suppress the output of every method by setting .mute = c("message", "output")
in embed
.
Including "message"
, suppresses normal print output, "output"
suppresses error messages, warnings and messages, the exact workings are not entirely clear to me, you can check out ?sink
for more information.
I should make this more clear in the documentation of embed.
emb <- embed(loadDataSet("Iris"), "Isomap", .mute = c("message"))
In the Rd files is is minus the dot:
emb2 <- embed(dat[samp], "Isomap", mute = NULL, knn = 10)
Should I delete the PR?
keep the part that fixes the bug with the nearest neighbors and add the fix for the documentation. Thanks by the way for checking all my code!
No problem; thanks for the package
i am closing it,
RANN
package does the checking for the number of neighbors and gives a useful error message, therefore no extra code for error checking needed.k << n
, else one could do a simple MDS or PCA anyways.
verbose
option and set toTRUE
. This will be good once these get wrapped inside of resampling routinesFo the apply function, where you
rbind
the out of sample data with the training set, I usedbut that may not be the best idea (I have no idea).