I ran the train()
with method = "lda" value = "finalModel"
without errors to completion, changed to method = "qda"
and I get errors... I am working on Generative Models.
library(dslabs)
library(caret)
data("tissue_gene_expression")
set.seed(1993)
y <- tissue_gene_expression$y
x <- tissue_gene_expression$x
x <- x[, sample(ncol(x), 10)]
fit_qda <- train(x, y, method = "qda", value = "finalModel")
fit_qda$results
I should get TWO genes to drive the algorithm...
I am getting:
Something is wrong; all the Accuracy metric values are missing: Error: Stopping
value
intrain
and I have not found any reference in the documentation. What would that argument be suppose to do? – c1au61o_HHdslabs
. – NelsonGonplacenta
counts only 6 elements` – c1au61o_HH