Skip to content

Commit

Permalink
Merged the for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyclade committed Feb 11, 2015
1 parent 5ffaaa0 commit 26d65d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SmilePlot/src/smile/plot/ScatterPlot.java
Expand Up @@ -134,11 +134,8 @@ public ScatterPlot(double[][] data, int[] y, char[] legends, Color[] palette) {

valueLookupTable = new HashMap<Integer, Integer>(id.length);

for (int i =0; i < id.length; i++) {
valueLookupTable.put(id[i], i);
}

for (int i = 0; i < id.length; i++) {
valueLookupTable.put(id[i], i);
if (id[i] < 0) {
throw new IllegalArgumentException("Negative class label: " + id[i]);
}
Expand Down

0 comments on commit 26d65d4

Please sign in to comment.