Skip to content

Commit

Permalink
Merge pull request pushkar#11 from shashir/ROUND_DISCRETES
Browse files Browse the repository at this point in the history
Gets rounded values for discrete features.
  • Loading branch information
pushkar committed Sep 29, 2014
2 parents 1939add + 4f26aa5 commit e4c7756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ ABAGAIL.jar
*.war
*.ear
manifest.mf
/bin
2 changes: 1 addition & 1 deletion src/shared/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public double getContinuous(int i) {
* @return the value
*/
public int getDiscrete(int i) {
return (int) data.get(i);
return (int) Math.round(data.get(i));
}

/**
Expand Down

0 comments on commit e4c7756

Please sign in to comment.