Skip to content

Commit

Permalink
supressWarnings RCppKohonen
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertocamara committed Nov 20, 2024
1 parent 73495ee commit 7eadde8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/api_kohonen.R
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
# create supersom
switch (mode,
online = {
res <- RcppSupersom(
res <- suppressWarnings({RcppSupersom(
data = data_matrix,
codes = init_matrix,
numVars = nvar,
Expand All @@ -385,10 +385,10 @@
radii = radius,
numEpochs = rlen,
distanceFunction = distance_ptr
)
)})
},
batch = {
res <- RcppBatchSupersom(
res <- suppressWarnings({RcppBatchSupersom(
data = data_matrix,
codes = init_matrix,
numVars = nvar,
Expand All @@ -398,10 +398,10 @@
radii = radius,
numEpochs = rlen,
distanceFunction = distance_ptr
)
)})
},
pbatch = {
res <- RcppParallelBatchSupersom(
res <- suppressWarnings({RcppParallelBatchSupersom(
data = data_matrix,
codes = init_matrix,
numVars = nvar,
Expand All @@ -412,7 +412,7 @@
numEpochs = rlen,
numCores = -1,
distanceFunction = distance_ptr
)
)})
}
)
# extract changes
Expand Down

0 comments on commit 7eadde8

Please sign in to comment.