modal-inria / MixtComp

Model-based clustering package for mixed data
Other
13 stars 4 forks source link

RMixtComp does not work on windows 11 #47

Open Quentin62 opened 1 year ago

Quentin62 commented 1 year ago

When running the following code on windows 11, it crashes or the session must be stopped. It does not happened on Linux.

The problem is the same with the examples from the documentation. Those examples are tested by the CRAN on a windows server 2022 (see config), and it works. So it seems that the problem is related to windows 11.

Data: prostate.csv

data <- read.table("~/Téléchargements/prostate.csv", sep = ";", header = TRUE)
z = data[,1]
data = data[,2:13]
head(data)

library(RMixtComp)

model <- list(Age = "Gaussian", Wt = "Gaussian", PF = "Multinomial", 
              HX = "Multinomial", SBP = "Gaussian", DBP = "Gaussian", 
              EKG = "Multinomial", HG = "Gaussian", SZ = "Gaussian", 
              SG = "Gaussian", AP = "Gaussian", BM = "Multinomial")

algo <- list(nbBurnInIter = 50,
             nbIter = 100,
             nbGibbsBurnInIter = 50,
             nbGibbsIter = 10,
             nInitPerClass = floor(nrow(data)/2),
             nSemTry = 5,
             confidenceLevel = 0.95,
             ratioStableCriterion = 0.99,
             nStableCriterion = 10)

nClass <- 1
nRun <- 3
sink(file = "mc_output.txt")
res <- mixtCompLearn(data, model, algo, nClass = nClass, criterion = "ICL", nRun = nRun, nCore = 1)
sink(file = NULL)

image

alternatives on windows 11