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.
1 parent 7d892da commit ec42ba9Copy full SHA for ec42ba9
src/sasctl/pzmm/writeScoreCode.py
@@ -381,7 +381,14 @@ def score{modelPrefix}({inputVarList}):
381
newVarList.extend(tempVar)
382
# For non-H2O models, insert the model into the provided predictMethod call
383
if not isH2OModel:
384
- predictMethod = predictMethod.format("_thisModelFit", "inputArray")
+ try:
385
+ predictMethod = predictMethod.format("_thisModelFit", "inputArray")
386
+ except AttributeError:
387
+ raise ValueError(
388
+ "The following is not a valid model to register in this format. "
389
+ + "Please verify that the appropriate arguments have been provided "
390
+ + "to the import model function."
391
+ )
392
cls.pyFile.write(
393
"""\n
394
try:
0 commit comments