final Logger logger = LoggerFactory.getLogger(RidgeRegressionBuilderTest.class);
String [] header = {"temperature"};
public List<Instance<double[]>> setUp() {
double regularizationConstant = 0.1;
ridgeLinearModelBuilder = new RidgeLinearModelBuilder().header(header).includeBiasTerm(true).regularizationConstant(regularizationConstant);
List<Instance<double[]>> trainingData = new ArrayList<>();
trainingData.add(new InstanceImpl<double[]>(new double[]{20.0}, 88.6));
trainingData.add(new InstanceImpl<double[]>(new double[]{16.0}, 71.6));
trainingData.add(new InstanceImpl<double[]>(new double[]{19.8}, 93.3));
trainingData.add(new InstanceImpl<double[]>(new double[]{18.4}, 84.3));