use of com.alibaba.alink.operator.common.statistics.basicstatistic.VectorSummaryDataConverter in project Alink by alibaba.
the class VectorSummarizerBatchOp method linkFrom.
@Override
public VectorSummarizerBatchOp linkFrom(BatchOperator<?>... inputs) {
BatchOperator<?> in = checkAndGetFirst(inputs);
DataSet<BaseVectorSummary> srt = StatisticsHelper.vectorSummary(in, getSelectedCol());
DataSet<Row> out = srt.flatMap(new VectorSummaryBuildModel());
VectorSummaryDataConverter converter = new VectorSummaryDataConverter();
this.setOutput(out, converter.getModelSchema());
return this;
}
Aggregations