full_lifecycle example error when scoring the model
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Bắt đầu với ví dụ full_lifecycle trên Viya Stable 2024.05 và tái hiện lệnh gọi module_lm.predict(x) bằng hàng X_test được hiển thị. Kiểm tra traceback của sasctl trong microanalytic_score.py và các chi tiết HTTP 500 được trả về để phân biệt vấn đề môi trường với vấn đề của sasctl. Hoàn tất khi đã xác định được nguyên nhân và đường dẫn scoring của ví dụ hoạt động hoặc giới hạn cần thiết được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 52
- Fork
- 45
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sassoftware/python-sasctl
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
sassoftware/python-sasctl#224 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
sassoftware/python-sasctl#216 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
sassoftware/python-sasctl#207 · 1 reaction ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
sassoftware/python-sasctl#202 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
sassoftware/python-sasctl#193 ·
Tất cả issue của sassoftware/python-sasctl
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
KonstantinStarovoytov/kitden#21 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RefactorĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ehmatthes/gh-profiler#166 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
RizgarOzan/playcal#13 ·