Info

此问题已关闭。 请重新打开它进行编辑或回答。

While building a training set I come across an issue.. different sized samples.

1 次查看(过去 30 天)
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 个评论
Greg Heath
Greg Heath 2017-6-25
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

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by