Hello,
first I have to say I am truley impressed by the quantity of algorimths implemented in Accord, and even more how well they are introduced in Cesars blog. Simply great. And the best part is the accompanying source code. With code everything is so much clearer! Also the code is really well written, and thus a great source for someone like me as an intermediate C# programmer. Learning from other peoples code is the best way to improve your own coding!
So, eager to learn, I followed the download and installation guides (not much to do wrong there I guess) and tried to make a dummy project to see if referencing the libraries etc. worked. Turns out it didn't :(
I added all references successfully and also "using" statements were no problem.
Here is part of the "dummy" code I was talking about:
private void button1_Click(object sender, EventArgs e)
{
KernelSupportVectorMachine ksvm = new KernelSupportVectorMachine(new Accord.Statistics.Kernels.Gaussian(), 3);
AForge.Neuro.ActivationNetwork ann = new AForge.Neuro.ActivationNetwork(new AForge.Neuro.BipolarSigmoidFunction(), 4, new int[2]);
//LevenbergMarquardtLearning teacher = new LevenbergMarquardtLearning(ann, false);
//teacher.RunEpoch(new double[3][], new double [3][]);
}
As you will have guessed I have a trivial Windows.Forms app with one button. When I press it I would like to step into this code, which works fine. The SVM and the ANN are generated. No problems. But when I uncomment the first commented line (LM-teacher), I can still compile and start the app, but as soon as I click my button, an exception occurs:
Could not load file or assembly 'AForge.Neuro, Version=2.2.4.0, Culture=neutral, PublicKeyToken=2094f4ea39731d4f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I am on a Win7 64bit PC, VS2010 Professional, target platform Any CPU, target framework .NET 4 Client Profile. I downloaded and installed Accord 2.9.0 and AForge 2.2.5 versions.
Can you tell me where I went wrong and how I can prevent this from happening when I will try out other libraries & components?
Thank you very much!
Sebastian