use of org.opensearch.ml.common.dataframe.DefaultDataFrame in project ml-commons by opensearch-project.
the class SampleAlgoTest method constructDataFrame.
private DataFrame constructDataFrame(int dataSize) {
ColumnMeta[] columnMetas = new ColumnMeta[] { new ColumnMeta("value", ColumnType.INTEGER) };
DataFrame dataFrame = new DefaultDataFrame(columnMetas);
for (int i = 0; i < dataSize; i++) {
dataFrame.appendRow(new Object[] { i });
}
return dataFrame;
}
Aggregations