Commit 21df458e authored by Chris Coughlin's avatar Chris Coughlin

Minor bugfixes

parent ae7cc10b
......@@ -56,7 +56,8 @@ public class Dataset implements Serializable {
* @param data array to copy
*/
public Dataset(double[] data) {
this.height = data.length;
this.width = data.length;
this.height = 1;
this.data = Arrays.copyOf(data, data.length);
}
......
......@@ -107,7 +107,6 @@ public class CrossValidationTest {
assertNotNull(best);
Map.Entry<MLROIFinder, Double> returnedBest = cv.findBestModel(2, models);
assertEquals(bestAccuracy, returnedBest.getValue(), 0.05 * bestAccuracy);
assertEquals(best, returnedBest.getKey());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment