Open Alexis-Varin opened 7 months ago
It would be nice if the user could set how many cores they wanted to use too.
It would be nice if the user could set how many cores they wanted to use too.
The pull request I adressed to Dr. Hou would allow that yes, adding an ncores
parameter the user could keep as detectCores()
or set to a fixed numeric value for desired number of cores to be used
Hello, currently your
infer_tree_structure()
function fails on Windows computers ifnumber.cluster
parameter is kept onNA
because yourmykmeans()
function which is called frominfer_tree_structure()
to calculate the number of clusters from k-means only usesmclapply()
with amc.cores
parameter of 30. This will trigger the error seen in this issue #3 where mc.cores > 1 is not supported on Windows.Your
lamian_test()
function correctly useslapply()
whenncores = 1
so please add the same option tomykmeans()
andinfer_tree_structure()
so that we don't need to manually set the number of clusters (because this triggers indeed only whennumber.cluster = NA
because that's the only parameter wheremykmeans()
is called).