how can I automaticlly optimize hyperparameter for lasso regression. I could not set the function input as variable.
Ältere Kommentare anzeigen
for i = 0:0.1:1
[B,FitInfo] = lasso(XTrain,yTrain,"Alpha",i);%alpha could not be variable like i. it's ok to use constant like 0.75.
error = sum(abs(yTest-yhat));
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Support Vector Machine Regression finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!