public abstract static class MatrixLoader.DMatrixProvider
extends java.lang.Object
implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected long |
actualRows |
protected float[] |
offsets |
protected float[] |
response |
protected float[] |
weights |
| Modifier | Constructor and Description |
|---|---|
|
DMatrixProvider() |
protected |
DMatrixProvider(long actualRows,
float[] response,
float[] weights,
float[] offsets) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispose() |
ml.dmlc.xgboost4j.java.DMatrix |
get() |
protected abstract ml.dmlc.xgboost4j.java.DMatrix |
makeDMatrix() |
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
protected long actualRows
protected float[] response
protected float[] weights
protected float[] offsets
protected DMatrixProvider(long actualRows,
float[] response,
float[] weights,
float[] offsets)
public DMatrixProvider()
protected abstract ml.dmlc.xgboost4j.java.DMatrix makeDMatrix()
throws ml.dmlc.xgboost4j.java.XGBoostError
ml.dmlc.xgboost4j.java.XGBoostErrorprotected void dispose()
public final ml.dmlc.xgboost4j.java.DMatrix get()
throws ml.dmlc.xgboost4j.java.XGBoostError
ml.dmlc.xgboost4j.java.XGBoostErrorpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException