我使用以下代码收到此错误。谁能帮助我了解我为什么会遇到此错误。 min()正常工作在八度。
results = eye(64,3);
count = 0;
for C_test = [0.01 0.03 0.1 0.3 1 3 10 30]
for sigma_test = [0.01 0.03 0.1 0.3 1 3 10 30]
count = count + 1;
model = svmTrain(X, y, C_test, @(x1, x2) gaussianKernel(x1, x2, sigma_test));
predictions = svmPredict(model, Xval);
prediction_error = mean(double(predictions ~= yval));
results(coun,:) = [C_test, sigma_test, prediction_error];
end
end
opt=min(results);
C = opt(1);
sigma = opt(2);