use of org.opensearch.ml.common.dataframe.IntValue in project ml-commons by opensearch-project.
the class MLPredictionOutputTest method setUp.
@Before
public void setUp() {
ColumnMeta[] columnMetas = new ColumnMeta[] { new ColumnMeta("test", ColumnType.INTEGER) };
List<Row> rows = new ArrayList<>();
rows.add(new Row(new ColumnValue[] { new IntValue(1) }));
rows.add(new Row(new ColumnValue[] { new IntValue(2) }));
DataFrame dataFrame = new DefaultDataFrame(columnMetas, rows);
output = MLPredictionOutput.builder().taskId("test_task_id").status("test_status").predictionResult(dataFrame).build();
}
Aggregations