All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.alink.operator.stream.dataproc.vector.VectorAssemblerStreamOp Maven / Gradle / Ivy

package com.alibaba.alink.operator.stream.dataproc.vector;

import org.apache.flink.ml.api.misc.param.Params;

import com.alibaba.alink.operator.common.dataproc.vector.VectorAssemblerMapper;
import com.alibaba.alink.operator.stream.utils.MapStreamOp;
import com.alibaba.alink.params.dataproc.vector.VectorAssemblerParams;

/**
 * VectorAssembler is a transformer that combines a given list of columns(vector or numerical column) into a single
 * vector column. It is useful for combining features generated by different feature transformers into a
 * single feature vector, in order to train ML models like logistic regression and decision trees. VectorAssembler
 * accepts the following input column types: all numeric types, and vector type. In each row, the values
 * of the input columns will be concatenated into a vector in the specified order.
 *
 * this operator cam transform stream data.
 *
 */
public final class VectorAssemblerStreamOp extends MapStreamOp 
	implements VectorAssemblerParams  {

	public VectorAssemblerStreamOp(Params params) {
		super(VectorAssemblerMapper::new, params);
	}

	public VectorAssemblerStreamOp() {
		this(null);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy