Skip to content

Commit

Permalink
Bug fix in beta_constraints. domain of the names vec can be larger th…
Browse files Browse the repository at this point in the history
…an the number of actual values, loop over the length of the vector instead of the size of the domain.
  • Loading branch information
tomasnykodym committed Feb 25, 2015
1 parent 903f229 commit 31f0873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hex/glm/GLM2.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ private double computeIntercept(DataInfo dinfo, double ymu, Vec offset, Vec resp
for(int i = 0; i < names.length; ++i)
m.put(names[i],i);
int [] newMap = MemoryManager.malloc4(dom.length);
for(int i = 0; i < dom.length; ++i) {
for(int i = 0; i < map.length; ++i) {
Integer I = m.get(dom[map[i]]);
newMap[i] = I == null?-1:I;
}
Expand Down

0 comments on commit 31f0873

Please sign in to comment.