Code problem of SVM in concrete regression

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

Réponses (1)

Umar
Umar le 1 Juil 2024

0 votes

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.

Tags

Question posée :

le 27 Juin 2024

Réponse apportée :

le 1 Juil 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by