[ https://issues.apache.org/jira/browse/MATH-1477?focusedWorklogId=225217&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-225217 ]
ASF GitHub Bot logged work on MATH-1477: ---------------------------------------- Author: ASF GitHub Bot Created on: 09/Apr/19 19:06 Start Date: 09/Apr/19 19:06 Worklog Time Spent: 10m Work Description: coveralls commented on issue #104: MATH-1477: fix reordering check in MillerUpdatingRegression.regress URL: https://github.com/apache/commons-math/pull/104#issuecomment-481394696 [![Coverage Status](https://coveralls.io/builds/22703187/badge)](https://coveralls.io/builds/22703187) Coverage decreased (-0.002%) to 90.175% when pulling **55fbf2dc6e85c63fbfb8693789ec45d44f4976d5 on cheesinglee:bug-MATH-1477** into **286ab7c6dd4c4aae0b0290517ea3508487438d01 on apache:master**. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 225217) Time Spent: 20m (was: 10m) > 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: 20m > 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)