In nntool, the sample data is formatted as: [0 1 -1; 2 3 1]
I have ~8000 data points in a text file. How do I format those points for use here? What does the semicolon signify?
In nntool, the sample data is formatted as: [0 1 -1; 2 3 1]
I have ~8000 data points in a text file. How do I format those points for use here? What does the semicolon signify?
From this example, that would mean each column of the input data would be separated by a
;. TheTargetdata would be a vector like[1 2 3 4]corresponding to each row of the input data.E.g. if you want to learn the XOR truth table:
Then the
Inputmatrix isAnd the
TargetisAnd therefore, your data should be formatted as
[0 0 1 1;0 1 0 1]for the input (each column is separated by a;) and the target data would be[0 1 1 0].As far as your 8000 point data file is concerned, you can load it into a variable in your workspace and let
nntoolread the input matrix from your workspace or a.matfile (after you've saved the variable into it).