🚧 Adding more verbosity, switching to 'future' backend

This commit is contained in:
Louis Lacoste 2024-06-12 17:41:09 +02:00
parent ecc35cc976
commit 28cd3f7de2

View file

@ -2,7 +2,10 @@ library(colSBM)
library(dplyr)
library(tidyr)
library(here)
library(future)
library(future.apply)
plan(multicore)
# Arguments
arg <- commandArgs(trailingOnly = TRUE)
@ -98,10 +101,11 @@ list_collection <- clusterize_bipartite_networks(
nb_run = 3L,
global_opts = list(
nb_cores = parallelly::availableCores(omit = 1L),
verbosity = 2L,
verbosity = 3L,
plot_details = 0L,
backend = "parallel"
)
backend = "future"
),
fit_opts = list(max_vem_steps = 200L)
)
save_file <- file.path(
@ -112,5 +116,5 @@ save_file <- file.path(
)
)
message("Clustering saved.")
message("Clustering saved. Model", model)
saveRDS(list_collection, file = save_file)