caret-machine-learning icon indicating copy to clipboard operation
caret-machine-learning copied to clipboard

enpls regression chokes on cars

Open tobigithub opened this issue 9 years ago • 0 comments

caret_6.0-70 and R version 3.3.1

# knn works
method <- c("enpls")

# -------------------------------------------------------------------------
# FIRST sequential code (not parallel one CPU core):
# ------------------------------------------------------------------------- 

require(caret); data(BloodBrain); set.seed(123)
fit1 <- train(bbbDescr, logBBB, method); fit1

# ------------------------------------------------------------------------- 
# SECOND parallel register 4 cores (no worries if you only have 2)
# train the caret model in parallel 
# -------------------------------------------------------------------------

library(doParallel); cl <- makeCluster(4); registerDoParallel(cl) 
  require(caret); data(BloodBrain); set.seed(123)
  fit1 <- train(bbbDescr, logBBB, method); fit1
stopCluster(cl); registerDoSEQ();

### END

errors

Something is wrong; all the RMSE metric values are missing:
      RMSE        Rsquared  
 Min.   : NA   Min.   : NA  
 1st Qu.: NA   1st Qu.: NA  
 Median : NA   Median : NA  
 Mean   :NaN   Mean   :NaN  
 3rd Qu.: NA   3rd Qu.: NA  
 Max.   : NA   Max.   : NA  
 NA's   :1     NA's   :1    
Error in train.default(bbbDescr, logBBB, method) : Stopping
In addition: There were 26 warnings (use warnings() to see them)
--
Error in train.default(bbbDescr, logBBB, method) : Stopping
In addition: Warning message:
In nominalTrainWorkflow(x = x, y = y, wts = weights, info = trainInfo,  :
  There were missing values in resampled performance measures.

tobigithub avatar Jul 17 '16 03:07 tobigithub