I'm using Genetic Algorithm & because my dataset is a little bad, It does not converge to the minimum & I receive this error:
(***Note: Before the error, I see this comment on command window: Length of label vector does not match # of instances.
***Note: When I run it for linear kernel function in SVM it's OK. but when I run it for RBF,Polynomial,Sigmoid kernel function, it happens.)
Matlab System Error:
Matlab has encountered an internal problem and needs to close.
my code is like this:
(GA part):
x = ga(@(nu) nu_svm_rbf( nu,train_classset,train_dataset,test_classset,test_dataset ),1,[],[],[],[],lb,ub);
nu_optimum_svd_rbf(1,i) = x;
What should I do by this sentence: Length of label vector does not match # of instances. What does it mean? it occurs before running the GA. Would you please help me? Thanks
Note: I'm using libSVM & my dataset size is 1000 points with 10 features.