colgreen / sharpneat

SharpNEAT - Evolution of Neural Networks. A C# .NET Framework.
https://sharpneat.sourceforge.io/
Other
375 stars 96 forks source link

ZigguratGaussianSampler [No overload for method 'NextDouble' takes 2 arguments] #11

Closed mdalvi closed 7 years ago

mdalvi commented 7 years ago

It seems that there is some issue with Redzen 3.0.1 (updated via Nuget)

I got

double ZigguratGaussianSampler.NextDouble()
No overload for method 'NextDouble' takes 2 arguments

@sharpneat\src\SharpNeatLib\Network\ActivationFunctions\RadialBasis\RbfGaussian.cs line 123, line 136 @sharpneat\src\SharpNeatLib\Genomes\Neat\NeatGenomeFactory.cs line 558

colgreen commented 7 years ago

I've just checked in a fix. SharpNEAT 2.x should be using Redzen 2.x, so I've added a version limit to the nuget refs to prevent this occurring again. I'm not sure if Visual Studio will auto-fix itself now you have v3 installed, but just go to 'Manage Nuget Packages for solution', select RedZen and select and install version 2.0.0.

mdalvi commented 7 years ago

Yeah downgrading to Redzen 2.x fixed the problem. Thanks