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 40 forks source link

Error got when score python model in MM #168

Closed wuyb28 closed 1 year ago

wuyb28 commented 1 year ago

Describe the issue A clear and concise description of the issue you're experiencing.

To Reproduce using sastcl sample to register pymodel to monthly env, and found all three dmcas_*.json files have the same size. https://github.com/sassoftware/python-sasctl/blob/master/examples/pzmm_binary_classification_model_import.ipynb 捕获

Go to SAS Model Manager. Upload the hmeq.csv and score

Expected behavior The task should score a table without error.

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

Version What version of sasctl are you using? 1.9.2

wuyb28 commented 1 year ago

I changed the sample code and replace DecisionTree to logistic regression and got soring success. So it related to algorithm? image

wuyb28 commented 1 year ago

More detail python code, score log & model zip file. py&logs.zip LogisticRegression.zip RandomForest.zip

smlindauer commented 1 year ago

The fitstat, roc, and lift charts being the same is noted in #167 and fixed in 2e1fa34 (unreleased as of yet).

smlindauer commented 1 year ago

You may be running in to a version mismatch between your development environment and the Viya environment. Can you check the versions of scikit-learn and pandas you are using on each?

wuyb28 commented 1 year ago

I'm using latest anaconda. image image

And my viya env is our monthly env https://ssemonthly.demo.sas.com/SASLogon/timedout?callbackUrl=/SASModelManager/.
image

Could you tell me which anaconda , scikit-learn and pandas version is suitable or is tested? Thank you!

wuyb28 commented 1 year ago

image I change my anaconda with Anaconda3-2020.07-Windows-x86_64.exe with python 3.8.3, and got success! Previous one is python 3.10. Thanks for your advise!@smlindauer

wuyb28 commented 1 year ago

7d928acbbbb0249a368e42349aa1ce3

image Now I'm using the updated sasctl src and got different size of json files but some model's lift chart may not be correct.