We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a15887 + 0c7e4c9 commit a5138a1Copy full SHA for a5138a1
src/dmatrix.rs
@@ -112,7 +112,7 @@ impl DMatrix {
112
xgb_call!(xgboost_sys::XGDMatrixCreateFromMat(data.as_ptr(),
113
num_rows as xgboost_sys::bst_ulong,
114
(data.len() / num_rows) as xgboost_sys::bst_ulong,
115
- 0.0, // TODO: can values be missing here?
+ f32::NAN,
116
&mut handle))?;
117
Ok(DMatrix::new(handle)?)
118
}
0 commit comments