Azure / Azure/MachineLearningNotebooks

model.predict_proba is not working in scoring script for classification

Đang mở
#1,950 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
4.4k
Fork
2.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**This is run function. But My output of test data is class only not probabilities.**
@input_schema('data', PandasParameterType(input_sample))
@output_schema(NumpyParameterType(output_sample))
def run(data):
result=model.predict_proba(data)
return result.tolist()

**My deployement Function for reference**
deployment = ManagedOnlineDeployment(
name=deployment_name,
endpoint_name=online_endpoint_name,
model=registered_model.id,
instance_type="Standard_F4s_v2",
instance_count=1,
code_configuration=CodeConfiguration(
code="./artifact_downloads/outputs",
scoring_script="scoring_script.py",
),
liveness_probe=ProbeSettings(
failure_threshold=30,
success_threshold=1,
timeout=2,
period=10,
initial_delay=2000,
),
readiness_probe=ProbeSettings(
failure_threshold=10,
success_threshold=1,
timeout=10,
period=10,
initial_delay=2000,
),
)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với scoring_script.py, đặc biệt là hàm run và các schema đầu vào/đầu ra của nó, sau đó kiểm tra ManagedOnlineDeployment CodeConfiguration. Tái hiện request gửi đến deployment bằng lời gọi model.predict_proba được hiển thị và so sánh response của nó với kết quả cục bộ. Hoàn tất khi response scoring của deployment chứa xác suất lớp thay vì chỉ chứa nhãn lớp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
azure, jupyter-notebook, python
Lĩnh vực
cloud, machine-learning
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.