Type of datastore for deep learning

1 visualización (últimos 30 días)
RobertC
RobertC el 5 de Oct. de 2021
Respondida: Jayanti el 13 de Mayo de 2025
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 comentario
Mahesh Taparia
Mahesh Taparia el 9 de Oct. de 2021
Hi
Can you share the sample code which you are using?

Iniciar sesión para comentar.

Respuestas (1)

Jayanti
Jayanti el 13 de Mayo de 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:

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by