File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ def pzmmImportModel(
113
113
isH2OModel = False ,
114
114
force = False ,
115
115
binaryString = None ,
116
+ missingValues = False
116
117
):
117
118
"""Import model to SAS Model Manager using pzmm submodule.
118
119
@@ -172,6 +173,9 @@ def pzmmImportModel(
172
173
Sets whether to overwrite models with the same name upon upload. By default False.
173
174
binaryString : string, optional
174
175
Binary string representation of the model object. By default None.
176
+ missingValues : boolean, optional
177
+ Sets whether data used for scoring needs to go through imputation for
178
+ missing values before passed to the model. By default False.
175
179
"""
176
180
# Initialize no score code or binary H2O model flags
177
181
noScoreCode = False
@@ -236,6 +240,7 @@ def getFiles(extensions):
236
240
isH2OModel = isH2OModel ,
237
241
isBinaryModel = binaryModel ,
238
242
binaryString = binaryString ,
243
+ missingValues = missingValues
239
244
)
240
245
print (
241
246
"Model score code was written successfully to {}." .format (
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ def score{modelPrefix}({inputVarList}):
275
275
)
276
276
)
277
277
# As a check for missing model variables, run a try/except block that reattempts to load the model in as a variable
278
- if binaryString is None :
278
+ if not isBinaryString :
279
279
cls .pyFile .write (
280
280
"""\n
281
281
try:
You can’t perform that action at this time.
0 commit comments