### Backpropagation NN : output returns the same . c#

Posted:

**Mon Jul 04, 2016 2:38 pm**Hi,

I have read some post about this problem. My case is I have 2 different images (black and white color) as inputs , and they are binarized to {1,0} like:

double [][] input = double[2][]{

new double[9600]{0,0,0,1....},

new double[9600]{0,1,0,0,0....}

};

The size of the input is 9600.

and the output is :

double[][] output= double[2][]{

new double[1]{0},

new double[1]{1}

};

my setup network : learning rate =0.01 , momentum=0.01 ,iteration =10000;

m_NeuralNetwork = new ActivationNetwork(new BipolarSigmoidFunction(2), 9600, 2, 1);

then I runEpoch() to get the error after 10000 times approx 2.5 .Then I test

with

var result1 =m_NeuralNetwork.Compute( new double[9600]{0,0,0,1....}); // for the first image , it returns 0.5

var result 2= m_NeuralNetwork.Compute( new double[9600]{0,1,0,0,0....}); // for the second image , it returns also 0.5 exactly the same

I have tried with adjusting the alpha of SigmoidFunction to 0.01 or0.1 but the 2 result values are still the same.

Do you have any ideas ?

Thanks for reading.

I have read some post about this problem. My case is I have 2 different images (black and white color) as inputs , and they are binarized to {1,0} like:

double [][] input = double[2][]{

new double[9600]{0,0,0,1....},

new double[9600]{0,1,0,0,0....}

};

The size of the input is 9600.

and the output is :

double[][] output= double[2][]{

new double[1]{0},

new double[1]{1}

};

my setup network : learning rate =0.01 , momentum=0.01 ,iteration =10000;

m_NeuralNetwork = new ActivationNetwork(new BipolarSigmoidFunction(2), 9600, 2, 1);

then I runEpoch() to get the error after 10000 times approx 2.5 .Then I test

with

var result1 =m_NeuralNetwork.Compute( new double[9600]{0,0,0,1....}); // for the first image , it returns 0.5

var result 2= m_NeuralNetwork.Compute( new double[9600]{0,1,0,0,0....}); // for the second image , it returns also 0.5 exactly the same

I have tried with adjusting the alpha of SigmoidFunction to 0.01 or0.1 but the 2 result values are still the same.

Do you have any ideas ?

Thanks for reading.