@Test public void train() { try { NumSeqSourceBatchOp numSeqSourceBatchOp = new NumSeqSourceBatchOp(0, 1000, "col0"); Pipeline pipeline = new Pipeline() .add(new QuantileDiscretizer() .setNumBuckets(2) .setSelectedCols(new String[] {"col0"}) .enableLazyPrintModelInfo()); List<Row> result = pipeline.fit(numSeqSourceBatchOp).transform(numSeqSourceBatchOp).collect(); } catch (Exception ex) { Assert.fail("Should not throw exception here."); } }
@Override protected BatchOperator train(BatchOperator in) { return new QuantileDiscretizerTrainBatchOp(getParams()).linkFrom(in); }
QuantileDiscretizer extends Trainer<QuantileDiscretizer, QuantileDiscretizerModel> implements QuantileDiscretizerTrainParams<QuantileDiscretizer>,
	QuantileDiscretizerPredictParams<QuantileDiscretizer>,
	HasLazyPrintModelInfo<QuantileDiscretizer> { @Override protected BatchOperator train(BatchOperator in) { return new QuantileDiscretizerTrainBatchOp(getParams()).linkFrom(in); } }
QuantileDiscretizer extends Trainer<QuantileDiscretizer, QuantileDiscretizerModel> implements QuantileDiscretizerTrainParams<QuantileDiscretizer>,
	QuantileDiscretizerPredictParams<QuantileDiscretizer>,
	HasLazyPrintModelInfo<QuantileDiscretizer> { @Override protected BatchOperator train(BatchOperator in) { return new QuantileDiscretizerTrainBatchOp(getParams()).linkFrom(in); } QuantileDiscretizer();  QuantileDiscretizer(Params params); }
QuantileDiscretizer extends Trainer<QuantileDiscretizer, QuantileDiscretizerModel> implements QuantileDiscretizerTrainParams<QuantileDiscretizer>,
	QuantileDiscretizerPredictParams<QuantileDiscretizer>,
	HasLazyPrintModelInfo<QuantileDiscretizer> { @Override protected BatchOperator train(BatchOperator in) { return new QuantileDiscretizerTrainBatchOp(getParams()).linkFrom(in); } QuantileDiscretizer();  QuantileDiscretizer(Params params);  }
QuantileDiscretizer extends Trainer<QuantileDiscretizer, QuantileDiscretizerModel> implements QuantileDiscretizerTrainParams<QuantileDiscretizer>,
	QuantileDiscretizerPredictParams<QuantileDiscretizer>,
	HasLazyPrintModelInfo<QuantileDiscretizer> { @Override protected BatchOperator train(BatchOperator in) { return new QuantileDiscretizerTrainBatchOp(getParams()).linkFrom(in); } QuantileDiscretizer();  QuantileDiscretizer(Params params);   }