Skip to content

Commit 0c7e4c9

Browse files
authored
Use f32::NAN as a missing value
1 parent 8a15887 commit 0c7e4c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmatrix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl DMatrix {
112112
xgb_call!(xgboost_sys::XGDMatrixCreateFromMat(data.as_ptr(),
113113
num_rows as xgboost_sys::bst_ulong,
114114
(data.len() / num_rows) as xgboost_sys::bst_ulong,
115-
0.0, // TODO: can values be missing here?
115+
f32::NAN,
116116
&mut handle))?;
117117
Ok(DMatrix::new(handle)?)
118118
}

0 commit comments

Comments
 (0)