Closed xdwangh closed 7 years ago
I found that I can set missing value as zero in file "FVec.java". However, some feature values actually are zeros.
@xdwangh
You can represent missing values using Float.NaN
or Double.NaN
.
double[] featureValues = {
1.0,
Float.NaN, // missing value
0.0,
// ...
};
FVec fv = FVec.Transformer.fromArray(featureValues, false /* = do not treats zero as missing value */);
I trained model by xgboost with missing value. I don't know how to treat missing value in this tools