Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1207

KohonenUpdateActionTest sometimes fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0, 3.6.1
    • None
    • None

    Description

      The KohonenUpdateActionTest sometimes failes with the following output:

      KohonenUpdateActionTest
          testUpdate :
        java.lang.AssertionError
        java.lang.AssertionError: expected:<0.0> but was:<5.551115123125783E-17>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:494)
      	at org.junit.Assert.assertEquals(Assert.java:592)
      	at org.apache.commons.math4.ml.neuralnet.sofm.KohonenUpdateActionTest.testUpdate(KohonenUpdateActionTest.java:90)
      

      Investigate why this is happening and fix the test accordingly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tn Thomas Neidhart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: