Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
While building a training set I come across an issue.. different sized samples.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello.
I am building a training set for a neural network toolbox. In this dataset, there are 4 classes. Two of the classes contain 91 samples with 181 elements in each sample. The other two classes contain 91 samples with 91 elements in each sample. My objective is to stack these classes on top of each other in one big matrix, but I can't do that because of the size difference.
I thought about making all datasets 181*91 matrices with NAN to fill empty slots, but I am wondering if that will make training too easy for the network?
To explain further, I am afraid that would automatically teach the network that if the dataset contains a lot of NANs, then it must be one of two classes, rather than learning characteristics of the actual dataset.
Ideas? Thanks!
1 commentaire
Greg Heath
le 25 Juin 2017
Your use of the terms "sample" and "elements" is confusing and misleading.
You need N examples of I-dimensional input vectors paired with N O-dimensional output vectors so that
[ I N ] = size(input)
[ O N ] = size(target)
For classifiers O is the number of classes.
Is your 181 a vector dimension or the number of vectors?
Greg
Réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!