Receiving Dot Indexing is not supported for variable of this type with the plsregress function
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Antharya
am 4 Sep. 2024 um 16:04
Bearbeitet: Voss
am 4 Sep. 2024 um 16:07
I'm using MATLAB version 2023b and plsregress function is throwing errors. The function was working fine in the previous releases. Any help is appreciated
0 Kommentare
Akzeptierte Antwort
Shreeya
am 4 Sep. 2024 um 16:07
Hi
I faced a similar issue with my code after migrating to MATLAB R2023b. A workaround to circumvent this problem would be to utilize a "cvpartition" object with 5 folds. Below is an example of how you can implement this:
x = randn(250, 50);
y = randn(250, 1);
cv = cvpartition(250, "KFold", 5);
plsregress(x, y, 32, 'CV', cv, 'MCReps', 10);
Let me know if this helps
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!