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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).