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 20104e1 + 5911052 commit 296cf9eCopy full SHA for 296cf9e
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