File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import argparse
18
18
import os
19
+ import logging
20
+ import sys
19
21
20
22
import bench
21
23
import daal4py
84
86
'seed' : params .seed
85
87
}
86
88
89
+ if np .isnan (X_test .values ).any ():
90
+ logging .warning ('Nan values aren not supported in model builder yet' )
91
+ sys .exit (1 )
92
+
87
93
if params .threads != - 1 :
88
94
lgbm_params .update ({'nthread' : params .threads })
89
95
Original file line number Diff line number Diff line change 15
15
# ===============================================================================
16
16
17
17
import argparse
18
+ import logging
19
+ import sys
18
20
19
21
import bench
20
22
import daal4py
@@ -115,6 +117,10 @@ def convert_xgb_predictions(y_pred, objective):
115
117
params .enable_experimental_json_serialization
116
118
}
117
119
120
+ if np .isnan (X_test .values ).any ():
121
+ logging .warning ('Nan values aren not supported in model builder yet' )
122
+ sys .exit (1 )
123
+
118
124
if params .threads != - 1 :
119
125
xgb_params .update ({'nthread' : params .threads })
120
126
You can’t perform that action at this time.
0 commit comments