dncR / MLSeq-archived

This repository is moved to archive. See "dncR/MLSeq" repository for current changes, issues and bug fixes.
5 stars 1 forks source link

Warning: model fit failed for Fold4.Rep10: sigma=0.003391, C=128.00 Error in indexes[[j]] : subscript out of bounds #7

Closed nayanvs closed 1 year ago

nayanvs commented 1 year ago

I am new to ML. I am running the following command with the indicated input data.

input data:

head(data) TTX1 TTX2 TTX3 cLTP1 cLTP2 cLTP3 ENSMUST00000068623.7-1809 1698 2391 3986 17329 15538 14581 ENSMUST00000071834.7-2108 1538 1784 2611 12339 11670 11726 ENSMUST00000028829.16-1243 7446 6115 2501 7520 8981 18213 ENSMUST00000025959.5-2148 1064 1361 1536 9069 8483 9416 ENSMUST000000952147.6-4327 3313 3358 0 3280 3413 12246 ENSMUST00000044889.6-4484 1015 1110 1647 7136 6690 6666

command:

set.seed(2128); fit.svm <- classify(data = data.trainS4, method = "svmRadial", preProcessing = "deseq-vst", ref = "Treated", tuneLength = 10, control = trainControl(method = "repeatedcv", number = 5, repeats = 10, classProbs = TRUE))

It gives a warning mentioned in the title and the output as below:

Warning: model fit failed for Fold4.Rep10: sigma=0.003391, C=128.00 Error in indexes[[j]] : subscript out of bounds Warning: There were missing values in resampled performance measures. Something is wrong; all the Accuracy metric values are missing: Accuracy Kappa
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 :10 NA's :10
Show Traceback Error: Stopping

nayanvs commented 1 year ago

Issue resolved. Just requires more input sample datasets.