Ordering of data
Training Matrix
| C C.. C ... C C.. C |
| A A.. A ... A A.. A |
| S S... S ... S S... S |
| E E... E ... E E... E |
| 1 1... 1 ... 4 4... 4 |
P= | S S... S ... S S... S |
| A A... A . .. A A... A |
| M M...M ... M M...M |
| P P... P ... P P... P |
| L L... L ... L L... L |
| E E... E ... E E... E |
| 1 2... 10 ... 1 2... 10 |
Target matrix
| C C.. C ... C C.. C |
| A A.. A ... A A.. A |
| S S... S ... S S... S |
| E E... E ... E E... E |
| 1 1... 1 ... 4 4... 4 |
T= | T T... T ... T T... T |
| A A... A . .. A A... A |
| R R.. .R ... R R... R |
| G G... G ... G G... G |
| E E... E ... E E... E |
| T T... T ... T T... T |
Each input training sample is a 252-element column vector
Each target is a 4-element column vector
Is this a correct means of inputting the data? I have worked myself
into circles about it.
Thanks for reading this far!
See the FAQ for the correct use of terminology.
My post on pretraining advice may also be useful.
You have a sample of N training cases or observations. Each case
consists of an input vector with Nvarin variables and an output
target
vector with Nvarout variables. For a classifier that assigns input
vectors
into 1-of-c classes, chose Nvarout = c and target vectors of the ith
class
as the ith column of the c-dimensional unit matrix. Assignments are
made
to the class corresponding to the output with the maximum value.
If you are using MATLAB, the dimensions of the input and target
matrices
are
size(p) = [Nvarin N]
size(t) = [Nvarout N] = [c N].
Hope this helps.
Greg
I have read through your pretraining advice (thank you, I found it
very informative). I tried both prestd and premnmx (not at the same
time) but didn't notice an improvement.I did this by applying it to
each input case before forming the matrix, i.e. prestd(case1), and
then I placed this as a column in the matrix and so on.
>size(p) = [Nvarin N]
>size(t) = [Nvarout N] = [c N].
Nvarin is the number of elements of each particular training case?
(272), Nvarout = 4? Am I correct in this?
Thank you for offering your advice Greg, I have been pouring over any
literature I could regarding this but was unsure if I was going down a
dead-end.
Kind regards
Apply it to the whole matrix at once
pn = prestd(p);
> >size(p) = [Nvarin N]
> >size(t) = [Nvarout N] = [c N].
>
> Nvarin is the number of elements of each particular training case?
> (272), Nvarout = 4? Am I correct in this?
Yes
> Thank you for offering your advice Greg, I have been pouring over any
> literature I could regarding this but was unsure if I was going down a
> dead-end.
You are welcome.
Greg