Help with my code
Show older comments
Hi i keep getting this error but i am not sure what it means, can anyone help?
Unrecognized method, property, or field 'train' for class 'cvpartition'.
Error in Ma (line 27)
BCTabletrain = cvfolds.train(i);
cv = cvpartition(n,'kfold', k);
cp = classperf (OutputVariable);
for i = 1:k
test = cv.test(i);
TrainSet = cv.train(i);
2 Comments
Image Analyst
on 2 Jan 2021
Why did you write that? Why do you think a cvpartition object has a "train" property, method, or field?
Accepted Answer
More Answers (0)
Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!