Search in sources :

Example 1 with VectorMaxAbsScalarModelInfo

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

the class VectorMaxAbsTest method testModelInfo.

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

Aggregations

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