Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > data file input

Reply
Thread Tools

data file input

 
 
GB
Guest
Posts: n/a
 
      10-22-2006
Help needed: in the C++ code of Backprapagation I am using data in the
way shwon below.
I need to change the program, so that it reads same data (actually I
need to put more complex data, for 64 inputs and 5 outputs; that is why
I need this change - too bulky to use in the code) but for the input
data file.
The question is - what exactly code going to accomplish that and how do
I organise the data file.
Thanking in advance
GB
======================
// read in the data
void initData(void)
{
printf("initialising data\n");
// the data here is the XOR data
// it has been rescaled to the range
// [-1][1]
// an extra input valued 1 is also added
// to act as the bias
// the output must lie in the range -1 to 1

trainInputs[0][0] = 1;
trainInputs[0][1] = -1;
trainInputs[0][2] = 1; //bias
trainOutput[0] = 1;

trainInputs[1][0] = -1;
trainInputs[1][1] = 1;
trainInputs[1][2] = 1; //bias
trainOutput[1] = 1;

trainInputs[2][0] = 1;
trainInputs[2][1] = 1;
trainInputs[2][2] = 1; //bias
trainOutput[2] = -1;

trainInputs[3][0] = -1;
trainInputs[3][1] = -1;
trainInputs[3][2] = 1; //bias
trainOutput[3] = -1;

}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to restrict user from input in <input type="file"> Tarkeshwar Javascript 2 04-17-2006 11:44 AM
Getting User Input after getting Input from a file dei3cmix@uga.edu C++ 3 03-23-2006 05:01 AM
can i pass data with input text instead of input hidden? Walter ASP General 6 09-17-2004 11:16 AM
reading output file data as input data Stephen Moon Perl Misc 5 02-29-2004 02:16 PM
HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type Roberto ASP General 3 10-18-2003 06:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57