sassoftware / python-sasctl

Python package and CLI for user-friendly integration with SAS Viya
https://sassoftware.github.io/python-sasctl
Apache License 2.0
45 stars 41 forks source link

Can not run a scoring test for model registered by register_sas_regression_model.py #152

Open jifwei opened 1 year ago

jifwei commented 1 year ago

Describe the issue Can not run a scoring test for model registered by register_sas_regression_model.py To Reproduce Just run register_sas_regression_model.py and get a model registered. Then create a scoring test and run the scoring test. It failed. The issue was caused by the score code type for the registered model. I switched from DS2 multi-type to DS2 package and it worked. Expected behavior A clear and concise description of what you expected to happen.

Stack Trace If you're experiencing an exception, include the full stack trace and error message.

Version What version of sasctl are you using? 1.7.3

smlindauer commented 1 year ago

@jifwei,

Can you update to the newest version of sasctl and see if the same behavior occurs? Also, are you aiming at a SAS Viya 3.5 or a SAS Viya 4 server?

jifwei commented 1 year ago

@smlindauer That example should work for both SAS Viya 4 and SAS Viya 3.5 since it has embedded the pickle file in the python code. I also tried sascrl 1.8.2 and it also has the same issue.

pebblehut commented 1 year ago

Hi @smlindauer - I'm seeing the same issue with my program when I use pzmm.ImportModel.import_model

Should I open up a new issue to track this?