You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Chee Sing Lee (JIRA)" <ji...@apache.org> on 2019/04/09 18:44:00 UTC

[jira] [Updated] (MATH-1477) MillerUpdatingRegression: ArrayIndexOutOfBounds when calling regress with variablesToInclude parameter

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

Chee Sing Lee updated MATH-1477:
--------------------------------
    Description: 
When performing a regression with a subset of predictors, an ArrayIndexOutOfBounds exception will occur for certain subset selections. For example, this appears to happen consistently for regressions without a constant term when the predictor at index 0 is not selected.

I do not understand at all the algorithm used to reorder the predictors when a subset is requested, but the fix appears to be a simple correction to the indexing range in the for-loop in the regress method of MillerUpdatingRegression.java.

 

Patch with expanded unit test to follow shortly.

  was:
When performing a regression with a subset of predictors, an ArrayIndexOutOfBounds exception will occur for certain subset selections. For example, this appears to happen consistently for regressions without a constant term when the predictor at index 0 is not selected.

I do not understand at all algorithm used to reorder the predictors when a subset is used, but the fix appears to be a simple correction to the indexing range in the for-loop at line 1059 of MillerUpdatingRegression.java.

 

Patch with expanded unit test to follow shortly.


> MillerUpdatingRegression: ArrayIndexOutOfBounds when calling regress with variablesToInclude parameter
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-1477
>                 URL: https://issues.apache.org/jira/browse/MATH-1477
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: Chee Sing Lee
>            Priority: Major
>              Labels: easyfix, newbie, patch
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When performing a regression with a subset of predictors, an ArrayIndexOutOfBounds exception will occur for certain subset selections. For example, this appears to happen consistently for regressions without a constant term when the predictor at index 0 is not selected.
> I do not understand at all the algorithm used to reorder the predictors when a subset is requested, but the fix appears to be a simple correction to the indexing range in the for-loop in the regress method of MillerUpdatingRegression.java.
>  
> Patch with expanded unit test to follow shortly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)