[jira] [Created] (MATH-798) PolynomialFitter.fit() stalls

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (MATH-798) PolynomialFitter.fit() stalls

Gary D. Gregory (Jira)
Kurt Pernstich created MATH-798:
-----------------------------------

             Summary: PolynomialFitter.fit() stalls
                 Key: MATH-798
                 URL: https://issues.apache.org/jira/browse/MATH-798
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.0
         Environment: Mac OS 10.6 and Win XP
            Reporter: Kurt Pernstich


Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() method stalls, meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does not stall?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (MATH-798) PolynomialFitter.fit() stalls

Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Pernstich updated MATH-798:
--------------------------------

    Attachment: TestPolyFit.zip

JUnit Test case which fits a PolynomialFitter using a GaussNewtonOptimiaer (stalls) and a LevenbergMarquardtOptimizer (works).
               

> PolynomialFitter.fit() stalls
> -----------------------------
>
>                 Key: MATH-798
>                 URL: https://issues.apache.org/jira/browse/MATH-798
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>         Attachments: TestPolyFit.zip
>
>
> Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() method stalls, meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does not stall?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (MATH-798) PolynomialFitter.fit() stalls

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Pernstich updated MATH-798:
--------------------------------

    Attachment: PolynomialFitterTest.java

Test case for Math-798
               

> PolynomialFitter.fit() stalls
> -----------------------------
>
>                 Key: MATH-798
>                 URL: https://issues.apache.org/jira/browse/MATH-798
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>         Attachments: PolynomialFitterTest.java
>
>
> Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() method stalls, meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does not stall?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (MATH-798) PolynomialFitter.fit() stalls

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Pernstich updated MATH-798:
--------------------------------

    Attachment:     (was: TestPolyFit.zip)
   

> PolynomialFitter.fit() stalls
> -----------------------------
>
>                 Key: MATH-798
>                 URL: https://issues.apache.org/jira/browse/MATH-798
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>         Attachments: PolynomialFitterTest.java
>
>
> Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() method stalls, meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does not stall?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-798) PolynomialFitter.fit() stalls

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

    [ https://issues.apache.org/jira/browse/MATH-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406491#comment-13406491 ]

Gilles commented on MATH-798:
-----------------------------

Your use-case had already been included in the unit test suite (albeit in the "CurveFitterTest" class because I initially wanted to remove the "PolynomialFitter" class).

MATH-799 discusses that the problem you reported here happens because the default tolerances were much too small. This has been solved (cf. unit test method "testMath798" in "CurveFitterTest").

However, since the mistake of setting the tolerances at too low values could still happen, I'm going to add a new (overridden) method in "PolynomialFitter", where you can explicitly set the number of allowed evaluations of the polynomial during the fit process. This will make it fail early instead of running "forever" (not really: the default number of evaluation is "Integer.MAX_VALUE").

               

> PolynomialFitter.fit() stalls
> -----------------------------
>
>                 Key: MATH-798
>                 URL: https://issues.apache.org/jira/browse/MATH-798
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>         Attachments: PolynomialFitterTest.java
>
>
> Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() method stalls, meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does not stall?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (MATH-798) PolynomialFitter.fit() stalls

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles resolved MATH-798.
-------------------------

       Resolution: Fixed
    Fix Version/s: 3.1

Changes performed in revision 1357353.
The unit test "testMath798" is now in "PolynomialFitterTest".

               

> PolynomialFitter.fit() stalls
> -----------------------------
>
>                 Key: MATH-798
>                 URL: https://issues.apache.org/jira/browse/MATH-798
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Mac OS 10.6 and Win XP
>            Reporter: Kurt Pernstich
>             Fix For: 3.1
>
>         Attachments: PolynomialFitterTest.java
>
>
> Hi, in certain cases I ran into the problem that the PolynomialFitter.fit() method stalls, meaning that it does not return, nor throw an Exception (even if it runs for 90 min). Is there a way to tell the PolynomialFitter to iterate only N-times to ensure that my program does not stall?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira