Type of datastore for deep learning

4 vues (au cours des 30 derniers jours)
RobertC
RobertC le 5 Oct 2021
Hi everyone, I'm trying to step inside the world of neural networks.
I would like to build a neural network (using Deep Network Designer) and it should have n>1 input values and m>1 output values.
I am really struggling to build a datastore or whatever that can be accepted as input dataset for training and testing.
I just create a csv from Excel, import it in Matlab and build the datastore, but when I try to start the training process of the network I always get the same problem: it always recognize my datastore as a 1x1 variable, even if it was built from a (n+m) x n_observations matrix.
Any suggestion?
  1 commentaire
Mahesh Taparia
Mahesh Taparia le 9 Oct 2021
Hi
Can you share the sample code which you are using?

Connectez-vous pour commenter.

Réponses (1)

Jayanti
Jayanti le 13 Mai 2025
Hi RobertC,
It seems like the issue you're facing is due to how the datastore is being created and imported into Deep Network Designer. Assuming your "input" and "target" is in matrix format you can create “arraydatastore” as shown below:
inputDS = arrayDatastore(inputs);
targetDS = arrayDatastore(targets);
ds = combine(inputDS, targetDS);
"arrayDatastore(inputs)" creates a datastore for the input data assuming inputs is a matrix. Similarly create a datastore for the target data. “combine” function combines these two individual datastores into a single datastore.After creating and combining the datastores, import the combined data into "Deep Network Designer".
You can also refer to below offical Mathworks documentation link for more information:

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by