You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Mariia Mykhailova (JIRA)" <ji...@apache.org> on 2016/11/03 21:59:58 UTC
[jira] [Created] (REEF-1663) Fix TestKMeansOnDirectRunViaFileSystem
failure in AppVeyor
Mariia Mykhailova created REEF-1663:
---------------------------------------
Summary: Fix TestKMeansOnDirectRunViaFileSystem failure in AppVeyor
Key: REEF-1663
URL: https://issues.apache.org/jira/browse/REEF-1663
Project: REEF
Issue Type: Sub-task
Components: REEF.NET
Reporter: Mariia Mykhailova
Priority: Minor
{{O.A.R.Tests.Functional.ML.KMeans.TestKMeans.TestKMeansOnDirectRunViaFileSystem}} [failed on AppVeyor|https://ci.appveyor.com/project/ApacheSoftwareFoundation/reef/build/1124-master/job/j85983ju7qyytgdc/tests] with error
{noformat}
System.InvalidOperationException : The new loss 14658.95 is larger than previous loss 14658.95, while loss function must be monotonically decreasing across iterations
{noformat}
I doubt that the new loss was really significantly less than the previous one, since the displayed values are identical. But the test uses exact comparisons of floating-point numbers, which occasionally might produce unexpected results.
We should probably replace exact comparisons with a proper comparison function, as described [here|http://stackoverflow.com/questions/3874627/floating-point-comparison-functions-for-c-sharp]. Note that this comparison is done in two files - {{TestKMeans.cs}} and {{KMeansMasterTask.cs}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)