Search in sources :

Example 1 with VectorSummaryDataConverter

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;
}
Also used : BaseVectorSummary(com.alibaba.alink.operator.common.statistics.basicstatistic.BaseVectorSummary) Row(org.apache.flink.types.Row) VectorSummaryDataConverter(com.alibaba.alink.operator.common.statistics.basicstatistic.VectorSummaryDataConverter)

Aggregations

BaseVectorSummary (com.alibaba.alink.operator.common.statistics.basicstatistic.BaseVectorSummary)1 VectorSummaryDataConverter (com.alibaba.alink.operator.common.statistics.basicstatistic.VectorSummaryDataConverter)1 Row (org.apache.flink.types.Row)1