Search in sources :

Example 1 with VectorMinMaxScalerModelInfo

use of com.alibaba.alink.operator.common.dataproc.vector.VectorMinMaxScalerModelInfo in project Alink by alibaba.

the class VectorMinMaxTest method testModelInfo.

@Test
public void testModelInfo() {
    BatchOperator batchData = new TableSourceBatchOp(GenerateData.getDenseBatch());
    VectorMinMaxScalerTrainBatchOp trainOp = new VectorMinMaxScalerTrainBatchOp().setSelectedCol("vec").linkFrom(batchData);
    VectorMinMaxScalerModelInfo modelInfo = trainOp.getModelInfoBatchOp().collectModelInfo();
    System.out.println(modelInfo.getMaxs().length);
    System.out.println(modelInfo.getMins().length);
    System.out.println(modelInfo.toString());
}
Also used : TableSourceBatchOp(com.alibaba.alink.operator.batch.source.TableSourceBatchOp) BatchOperator(com.alibaba.alink.operator.batch.BatchOperator) VectorMinMaxScalerModelInfo(com.alibaba.alink.operator.common.dataproc.vector.VectorMinMaxScalerModelInfo) Test(org.junit.Test)

Aggregations

BatchOperator (com.alibaba.alink.operator.batch.BatchOperator)1 TableSourceBatchOp (com.alibaba.alink.operator.batch.source.TableSourceBatchOp)1 VectorMinMaxScalerModelInfo (com.alibaba.alink.operator.common.dataproc.vector.VectorMinMaxScalerModelInfo)1 Test (org.junit.Test)1