Skip to content

Commit

Permalink
Merge pull request #266 from larsbonczek/master
Browse files Browse the repository at this point in the history
Write click data into correct array index
  • Loading branch information
jeffhuang authored Jul 24, 2022
2 parents af0ef09 + 7d33376 commit 5356d56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ridgeWeightedReg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ reg.RidgeWeightedReg.prototype.predict = function(eyesObj) {
weightedEyeFeats[trueIndex] = [val];
}
}
weightedXArray[trueIndex] = this.screenXClicksArray.get(i).slice(0, this.screenXClicksArray.get(i).length);
weightedYArray[trueIndex] = this.screenYClicksArray.get(i).slice(0, this.screenYClicksArray.get(i).length);
weightedXArray[i] = this.screenXClicksArray.get(i).slice(0, this.screenXClicksArray.get(i).length);
weightedYArray[i] = this.screenYClicksArray.get(i).slice(0, this.screenYClicksArray.get(i).length);
weightedXArray[i][0] = weightedXArray[i][0] * weight;
weightedYArray[i][0] = weightedYArray[i][0] * weight;
}
Expand Down
4 changes: 2 additions & 2 deletions www/webgazer.js
Original file line number Diff line number Diff line change
Expand Up @@ -147609,8 +147609,8 @@ ridgeWeightedReg_reg.RidgeWeightedReg.prototype.predict = function(eyesObj) {
weightedEyeFeats[trueIndex] = [val];
}
}
weightedXArray[trueIndex] = this.screenXClicksArray.get(i).slice(0, this.screenXClicksArray.get(i).length);
weightedYArray[trueIndex] = this.screenYClicksArray.get(i).slice(0, this.screenYClicksArray.get(i).length);
weightedXArray[i] = this.screenXClicksArray.get(i).slice(0, this.screenXClicksArray.get(i).length);
weightedYArray[i] = this.screenYClicksArray.get(i).slice(0, this.screenYClicksArray.get(i).length);
weightedXArray[i][0] = weightedXArray[i][0] * weight;
weightedYArray[i][0] = weightedYArray[i][0] * weight;
}
Expand Down
2 changes: 1 addition & 1 deletion www/webgazer.js.map

Large diffs are not rendered by default.

0 comments on commit 5356d56

Please sign in to comment.