1

Rを実行している2つのサーバーがあります。

1 つのサーバーには 2.15.2 があります。これで、プログラムは正常に実行されます。

バージョン3.0.1の別のサーバーに最新のRをインストールしました。

このサーバーでは、同じコードで次のエラーが発生しています

Error in checkForRemoteErrors(val) : 
  5 nodes produced errors; first error: incorrect number of dimensions
Calls: build.model ... clusterApply -> staticClusterApply -> checkForRemoteErrors
Execution halted

2.15.2 は Snow を使用していないようですが、3.0.1 は並列計算に Snow を使用しています。

この問題を解決するにはどうすればよいですか?

エラーは Rscript から発生している可能性があります。わかりません。ここにコードがあります

model.building.main <- function(configFile, model.repository) {

  source("read_QE_config.R")
  param <- read.QE.config(configFile)
  model.count <- 0

  for (i in 1:nrow(param$models)) {

    model.name <- param$models$model.name[i]
    independent.variables <- param$independent.variables[param$independent.variables$model==model.name &
                                                           param$independent.variables$in.model,]

    stage.number <- as.integer(param$models$stage.number[i])
    stage.numbers <- as.integer(independent.variables$stage.number)
    relevant.variables <- independent.variables[stage.numbers <= stage.number,]

    if (!all(!relevant.variables$incomplete.data)) {

#       model.file.name <- paste(model.repository, "/", model.name, "_", stage.number, "_existing.Rdata", sep="")  
      exec.command <- paste("Rscript script_model_building.R", configFile, model.name, stage.number, "existing", model.repository, sep=" ")
      cat(paste(exec.command, "\n", sep=" "))
      system(exec.command, wait=FALSE)
      model.count <- model.count + 1

#       model.file.name <- paste(model.repository, "/", model.name, "_", stage.number, "_new.Rdata", sep="")
      exec.command <- paste("Rscript script_model_building.R", configFile, model.name, stage.number, "new", model.repository, sep=" ")
      cat(paste(exec.command, "\n", sep=" "))
      system(exec.command, wait=FALSE)
      model.count <- model.count + 1

    } else {

#       model.file.name <- paste(model.repository, "/", model.name, "_", stage.number, "_existing.Rdata", sep="")
      exec.command <- paste("Rscript script_model_building.R", configFile, model.name, stage.number, "existing", model.repository, sep=" ")
      cat(paste(exec.command, "\n", sep=" "))
      system(exec.command, wait=FALSE)
      model.count <- model.count + 1

    }

  }  

  return(model.count)


}

別のファイルの次の行でエラーが発生しています

gbm.model.standard <- gbm(Y ~ .,
                                distribution         = param$distribution,
                                data                 = data.standard,
                                n.trees              = gbm.training.ntrees,
                                interaction.depth    = 3,
                                shrinkage            = 0.001,
                                bag.fraction         = 0.6,
                                verbose              = param$gbm.detail,
                                cv.folds             = cv.folds.standard)

R 2.15.2 では gbm_1.6-3.2 を、R 3.0.1 では gbm 2.1 を使用していました。

4

0 に答える 0