public static class SparseMatrixFactory.SparseDMatrixProvider extends MatrixLoader.DMatrixProvider
actualRows, offsets, response, weights| Constructor and Description |
|---|
SparseDMatrixProvider() |
SparseDMatrixProvider(long[][] rowHeaders,
int[][] colIndices,
float[][] sparseData,
ml.dmlc.xgboost4j.java.DMatrix.SparseType csr,
int shape,
long nonZeroElementsCount,
int actualRows,
float[] response,
float[] weights,
float[] offsets) |
| Modifier and Type | Method and Description |
|---|---|
ml.dmlc.xgboost4j.java.DMatrix |
makeDMatrix() |
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
dispose, getpublic SparseDMatrixProvider(long[][] rowHeaders,
int[][] colIndices,
float[][] sparseData,
ml.dmlc.xgboost4j.java.DMatrix.SparseType csr,
int shape,
long nonZeroElementsCount,
int actualRows,
float[] response,
float[] weights,
float[] offsets)
public SparseDMatrixProvider()
public ml.dmlc.xgboost4j.java.DMatrix makeDMatrix()
throws ml.dmlc.xgboost4j.java.XGBoostError
makeDMatrix in class MatrixLoader.DMatrixProviderml.dmlc.xgboost4j.java.XGBoostErrorpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class MatrixLoader.DMatrixProviderjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class MatrixLoader.DMatrixProviderjava.io.IOExceptionjava.lang.ClassNotFoundException