public abstract class DMatrixBuilder extends Object
| Constructor and Description |
|---|
DMatrixBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract ml.dmlc.xgboost4j.java.DMatrix |
buildMatrix(float[] labels) |
protected static void |
checkColIndex(int col) |
abstract DMatrixBuilder |
nextColumn(int col,
float value) |
DMatrixBuilder |
nextColumn(String col) |
abstract DMatrixBuilder |
nextRow() |
void |
nextRow(float[] row) |
void |
nextRow(String[] row) |
void |
nextRow(String[] row,
int start,
int endEx) |
public DMatrixBuilder()
protected static final void checkColIndex(int col)
@Nonnull public abstract DMatrixBuilder nextRow()
@Nonnull public abstract DMatrixBuilder nextColumn(@Nonnegative int col, float value)
@Nonnull public DMatrixBuilder nextColumn(@Nonnull String col)
@Nonnull public abstract ml.dmlc.xgboost4j.java.DMatrix buildMatrix(@Nonnull float[] labels) throws ml.dmlc.xgboost4j.java.XGBoostError
ml.dmlc.xgboost4j.java.XGBoostErrorCopyright © 2013–2019 Apache Hivemall. All rights reserved.