Fitrnet having assignment size errors
Ältere Kommentare anzeigen
I am trying to create a neural network using fitrnet and a dataset that is 1000x24. I am trying to use cvpartition to split the dataset into 80% training and 20% test. However, when doing so, I regularly get an error in the "RegressionChainEnsemble.m" file on line 140 saying "Unable to perform assignment because the indices on the left side are not compatible with the size of the right side." This happens every time when using 80% on cvpartition but does not when I lower the percent down to around 50%. Does anyone know how to help with this?
Follow on question: when I have trained a model with fitrnet, how do I then pass in predictor variable values? For example, I would like to pass in a set of input data to get the 14 response variable values. Thanks!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows 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!