Code problem of SVM in concrete regression
Mostrar comentarios más antiguos
I am doing SVM learning, the code is
[Predict_1,error_1] = svmpredict(tn_train,pn_train,model);
[Predict_2,error_2] = svmpredict(tn_test,pn_test,model); taken from GitHub, but there are problems, mainly for this piece of code after running, it is empty set
Respuestas (1)
Umar
el 1 de Jul. de 2024
0 votos
Hi ZZ,
After reading your comments, I can think of mismatched dimensions of input data, improper model initialization, or errors in the svmpredict function call. Implement error handling to capture any exceptions that might occur during the prediction process.
try [Predict_1, error_1] = svmpredict(tn_train, pn_train, model); [Predict_2, error_2] = svmpredict(tn_test, pn_test, model); catch ME disp('An error occurred during prediction:'); disp(ME.message); end
Hope this will help resolve your problem. Let me know if I can assist further.
Categorías
Más información sobre Discriminant Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!