Tommaso Teofili created HAMA-668:
------------------------------------

             Summary: Fix possible number instabilities in LogisticRegression CF
                 Key: HAMA-668
                 URL: https://issues.apache.org/jira/browse/HAMA-668
             Project: Hama
          Issue Type: Bug
          Components: machine learning
            Reporter: Tommaso Teofili


In calculateCostForItem the log of several calculations may run in the special 
cases of the logarithm:
* If the argument is NaN or less than zero, then the result is NaN.
* If the argument is positive infinity, then the result is positive infinity.
* If the argument is positive zero or negative zero, then the result is 
negative infinity.
We should guard them.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to