|
|
 Prize winner in Competition
"C# Oct 2006"
Comments and Discussions
|
|
 |

|
Thank you so much for your work!
http://arachnode.net
|
|
|
|

|
Hi,
Great article, has been a big help. I do have a question though, as an example say I had a coin toss but the coin was unfairly weighted. And I have 1000 occurances of this coin toss with certain input values (position of coin, person tossing, etc.) and the outcome of the toss. What I want to build is a system that taking these inputs can give me the probability of it being heads based on the inputs provided. What type of network would you recommend, and how can I output probability rather than just yes it will be heads.
Thanks,
Chris
|
|
|
|

|
I am a leaner from China.
Long times ago when I began to learn the ANN ,I write a program using C# ,however it never worked ,I donot know why. You know the basic principle of ANN is very common.So ,I decide to read your codes ,then consult some things from you.
My English is poor ,so please ^_^
Your work is great 3Q.
|
|
|
|

|
First of all thank you for the article and thank you for nice framework.
I have a quesetion about using the framwork for classification tasks.
Suppose we have 3 classes of 20x20 gray scale images: traingles, squares and circles.
I have created a simple BProp NNet with following params:
Activation func: Unipolar sigmoid.
Input layer:400 neurons.
Hidden layer: tried from 3 to 100 neurons.
Output: 3 neurons.
Alpha value: from 0.001 to 10.
Learining rate: from 0.001 to 10.
Momentum: from 0.001 to 2.
Training epochs: from 100 to 1000.
Input samples: from 3 samples to 18 samples (3 objects, 6 samples each)
All inputs are normalized to [0,1].
The problem:
The net doesn't learn at all. The Error stays the same during the training.
The only thing I have noticed, is that the starting level of error decreases
when the alpha value gets very small.
May be I am missing something? Could you please point me to right direction.
Thank You.
Serghey Bleih.
|
|
|
|

|
Hello,
Just a quick idea ... Try bipolar sigmoid function and inputs in the range [-1, 1].
Also ... What are your desired outputs (range, etc.)? You've said nothing about it.
|
|
|
|

|
Thank you for answering so quickly.
The desired outputs are:
0 0 1 for first object (let it be triangle).
0 1 0 for second object (square).
1 0 0 for third object (circle).
Where each collumn represent the neuron in output layer.
|
|
|
|

|
OK, try with bipolar function, inputs and outputs and then we'll see.
|
|
|
|

|
Thanks a lot for helping me out Andrew. I realy apreciate Your help.
I have tried to change the activation func, normalized inputs in range [-1;1]
But still the error does not want to decrease
Here is a piece of code, among with inputs and outputs.
Maybe you can see that I am doing something wrong.
public BPropNet(double rate, double momentum, double alpha)
{
this.BPropNNet = new ActivationNetwork(new BipolarSigmoidFunction(alpha), 400, 45, 3);
this.Teacher = new BackPropagationLearning(BPropNNet);
this.Teacher.LearningRate = rate;
this.Teacher.Momentum = momentum;
}
public void train(double[][]inputs,double[][]targets,int epochs)
{
double error;
for (int i = 1; i <= epochs; i++)
error = this.Teacher.RunEpoch(inputs, targets);
}
this.net = new BPropNet(0.3,0,2);
this.net.train(this.inputs, this.targets, 1000, 100);
here is a piece of input vector
inputs[0] = 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 -1,00 -1,00 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 -1,00 -1,00 -1,00 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 -1,00 -1,00 0,99 0,99 0,99 0,99 -1,00 -1,00 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 0,99 -1,00 -1,00 ...
Total: 82 "-1"
318 "0.99"
targets[0] = -1.0 -1.0 1.0
|
|
|
|

|
Hi Andrew,
Your work got my 5. But I'm interested in learning a bit more by studying how your demos call your libraries. Any chance of your including the source for the demos? Or providing a link direct to them?
Regards,
Lee
I just love Koalas - they go great with Bacon.
|
|
|
|

|
Hello,
Lee Humphries wrote: Any chance of your including the source for the demos?
You may find Download source files link on top of the article (as it usually done on CP).
Also all latest versions of samples and libraries are part of the AForge.NET framework[^].
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
The articles describes a C# library for neural network computations, and their application for several problem solving.
| Type | Article |
| Licence | GPL3 |
| First Posted | 19 Nov 2006 |
| Views | 511,936 |
| Bookmarked | 561 times |
|
|