TrainLinearRegression train = new TrainLinearRegression(lin,data);
train.iteration();
System.out.println("w0 = " + Format.formatDouble(lin.getWeights()[0],2));
System.out.println("w1 = " + Format.formatDouble(lin.getWeights()[1],2));
System.out.println("Error: " + lin.calculateError(data));
}
public void testLinear2() {
double[][] INPUT = { {2}, {4}, {6}, {8} };
double[][] IDEAL = { {2}, {5}, {5}, {8} };