sassoftware / sassoftware/python-sasctl
full_lifecycle example error when scoring the model
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 52
- Forks
- 45
- Ø Merge
- 23 Std. 38 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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
result = module_lm.predict(x)
File "", line 132, in _bostonlinearregression_9096f80f6_predict
File "/opt/conda/lib/python3.10/site-packages/sasctl/_services/microanalytic_score.py", line 144, in execute_module_step
r = cls.post("/modules/{}/steps/{}".format(module, step), json=body)
File "/opt/conda/lib/python3.10/site-packages/sasctl/_services/service.py", line 113, in post
return cls.request("post", *args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/sasctl/services/service.py", line 93, in request
return core.request(verb, path, session, format, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/sasctl/core.py", line 2042, in request
raise HTTPError(
urllib.error.HTTPError: HTTP Error 500: {"errorCode":-1958743877,"message":"Error 8b3ff0bb received when executing the step "predict" of the module "bostonlinearregression_9096f80f6".","details":["traceId: db2747f967f1cd2f","path: /microanalyticScore/modules/bostonlinearregression_9096f80f6/steps/predict"],"links":[],"version":2,"httpStatusCode":500}
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit dem full_lifecycle-Beispiel auf Viya Stable 2024.05 und reproduzieren Sie den Aufruf module_lm.predict(x) unter Verwendung der gezeigten X_test-Zeile. Untersuchen Sie den sasctl-Traceback in microanalytic_score.py und die zurückgegebenen HTTP-500-Details, um ein Umgebungsproblem von einem sasctl-Problem zu unterscheiden. Als erledigt gilt die Aufgabe, wenn die Ursache identifiziert ist und der Beispiel-Scoring-Pfad funktioniert oder die erforderliche Einschränkung dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100