Unrecognized function or variable 'fitrnet'.

1 visualizzazione (ultimi 30 giorni)
Yanxin Liu
Yanxin Liu il 9 Mag 2021
Risposto: Aditya Patil il 12 Mag 2021
I have "Statistical and Machine Learning' package in my Matlab. But I can't use "fitrnet" function as introduced here https://www.mathworks.com/help/stats/fitrnet.html.
My code is as below:
cvp = cvpartition(n,'KFold',7);
CVMdl = fitrnet(PhyChemParams,'ARcoeff','CVPartition',cvp,'Standardize',true,'LayerSizes',[20,10]);
yfit = kfoldPredict(CVMdl);
mse = mean((yfit - CVMdl.Y).^2);
The error message is as below:
Unrecognized function or variable 'fitrnet'.

Risposte (1)

Aditya Patil
Aditya Patil il 12 Mag 2021
fitrnet was introduced in R2021a. Ensure you have the correct release installed, and that you have the statistics and machine learning toolbox installed.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by