Can a cell array be training input for a neural network?

10 Ansichten (letzte 30 Tage)
Vergil234
Vergil234 am 16 Mai 2011
I have created a cell array with aprox 200 letters (capital A,B,C etc ).
Each letter is a matrix, cut from a picture of a car plate. Now my next task is to get those letters into a neural to train. But I have some questions :
a) Is this even possible? Meaning Cell ---> Neural Network b) If not how can I fix it? c) If yes , is it something simple that I am just too blind to see?
Excuse my bad English, I am not native.
  2 Kommentare
Walter Roberson
Walter Roberson am 16 Mai 2011
Are the arrays inside the cell array all the same size?
Vergil234
Vergil234 am 18 Mai 2011
Not all of them no. Could you explain please? Trying to understand really.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

TED MOSBY
TED MOSBY am 2 Mai 2025
Hi,
You can use cell arrays, but you need to convert them into one of the formats which MATLAB's training functions will expect. Thus, you need to convert them into numeric arrays or datastores. You can then simply pass them in your neural network and go ahead with your training.
To know more about "datastore" refer here:
Here is more information on MATLAB's function "trainnet" used for training deep learning neural network:
Hope this helps!
  1 Kommentar
Walter Roberson
Walter Roberson am 3 Mai 2025

Note that if you are using a datastore then you will probably want to use https://www.mathworks.com/help/deeplearning/ref/augmentedimagedatastore.html and specify an output size that each image is to be automatically resized to. You can also use options to specify that rgb images are automatically converted to grayscale (or grayscale automatically converted to rgb)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by