Skip to content

mute messages during predict / @apply #62

@mb706

Description

@mb706

The embed()-method offers the .mute argument which allows us to suppress messages and output during fitting. It would be nice to also have this option for a precict()-call.

Example: it would be nice to be able to suppress the #> 2025-08-27 09... parts, without having to capture.output() them ourselves.

library("dimRed")
dat <- loadDataSet("3D S Curve", n = 500)
samp <- sample(nrow(dat), size = 75)
emb2 <- embed(dat[samp], "Isomap", .mute = "message", knn = 40)
emb3 <- predict(emb2, dat[-samp])
#> 2025-08-27 09:15:36.758322: L-Isomap embed START
#> 2025-08-27 09:15:36.759154: constructing knn graph
#> 2025-08-27 09:15:36.769243: calculating geodesic distances
#> 2025-08-27 09:15:36.885329: embedding
#> 2025-08-27 09:15:36.895886: DONE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions