@Test
public void isotonicRegTest() throws Exception {

	int length = 15;
	Object[][] inTrain=new Object[length][3];
	for (int i=0;i<length;++i){
		inTrain[i][0]=tuples[i].f0;
		inTrain[i][1]=tuples[i].f1;
		inTrain[i][2]=tuples[i].f2;
	}
	Object[][] inTest=new Object[10][3];
	for (int i=0;i<10;++i){
		inTest[i][0]=tupleTest[i].f0;
		inTest[i][1]=tupleTest[i].f1;
		inTest[i][2]=tupleTest[i].f2;
	}
	String[] colNames=new String[]{"col1","col2","col3"};
	MemSourceBatchOp trainData=new MemSourceBatchOp(inTrain,colNames);
	MemSourceBatchOp predictData = new MemSourceBatchOp(inTest, new String[]{"col1","col2","col3"});
	IsotonicRegTrainBatchOp model=new IsotonicRegTrainBatchOp().setLabelCol("col1").setFeatureCol("col2").setWeightCol("col3")
			.linkFrom(trainData);
	model.print();
	IsotonicRegPredictBatchOp predictBatchOp = new IsotonicRegPredictBatchOp().setPredictionCol("predictCol");
	predictBatchOp.linkFrom(model,predictData).print();
}