You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
if there is a column of zeroes in the input data, which is to be normalized, the output becomes all NaNs (Not a number). This is because of zero division in Encog.Util.Arrayutil.NormalizedField.Normalize() method:
public double Normalize(double v)
{
return ((v - _actualLow)/(_actualHigh - _actualLow)) // if _actualHigh and _actualLow are both zero -> NaN
*(_normalizedHigh - _normalizedLow)
+ _normalizedLow;
}
There is already FixSingleValue() method, which would fix this problem, but it is not used (at all). The same applies for Java code.
The text was updated successfully, but these errors were encountered:
Thanks for pointing that out! I fixed this on both the Java and C# side. Added calls to FixSingle value in all of the constructors. Did this to both Java and C# sides.
Hi,
if there is a column of zeroes in the input data, which is to be normalized, the output becomes all NaNs (Not a number). This is because of zero division in Encog.Util.Arrayutil.NormalizedField.Normalize() method:
There is already FixSingleValue() method, which would fix this problem, but it is not used (at all). The same applies for Java code.
The text was updated successfully, but these errors were encountered: