python-sasctl
python-sasctl copied to clipboard
full_lifecycle example error when scoring the model
Hi, I followed the example full_lifecycle on Viya Stable 2024.05. After publishing the model to MAS, I try to score the model using the following code (coming from the example):
Select the first row of testing data
x = X_test.iloc[0, :]
Call the published module and score the record
result = module_lm.predict(x) result
When executing, I get the following error message.
(Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_88/3639141225.py", line 5, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2054, in showtraceback if hasattr(value, "render_traceback"): File "/opt/conda/lib/python3.10/tempfile.py", line 477, in getattr file = self.dict['file'] KeyError: 'file'
Knowing that I get a HTTP 500 error, I'm not 100% sure if the problem is my environment configuration or with sasctl.