How to create a datastore for using the Deep Network Designer App?
Afficher commentaires plus anciens
I'm trying to use the Deep Network Designer app (R2021b) to perform regression between numeric inputs and outputs. I have prepared the trainind dataset in a matrix X of size n x f, where f is the number of features, and a matrix Y of size n x r, where r is the number of responses (n is the number of observations). Similarly, Xv and Yv hold the validation data. When I run the app, I see that it needs the data to be in a datastore, so I tried the following to make the appropriate datastores: (f = 3, r = 5, n = 500, n_val = 100).
ar_c = mat2cell([X Y],ones(500,1),[3,5]);
arv_c = mat2cell([Xv Yv],ones(100,1),[3,5]);
ds = arrayDatastore(ar_c,'OutputType','same');
ds_v = arrayDatastore(arv_c,'OutputType','same');
The datastores ds and ds_v get accepted as legitimate input (I can see the first 5 observations previewed).
But when I hit "train", I get the following error: Training with trainNetwork failed. Input datastore returned more than one observation per row for network input 1. (not sure why the "Don't" rules for posting recommend against pasting images of error messages).

As per the instructions given to mat2cell, I have only one row per observation (or so I think). Can someone please tell me what I'm doing wrong here? Thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!