Azure / Azure/MachineLearningNotebooks
model.predict_proba is not working in scoring script for classification
- 主要語言
- Jupyter Notebook
- 星號
- 4.4k
- 分支
- 2.6k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**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,
),
)
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 scoring_script.py 開始,尤其檢查 run 函式及其輸入/輸出 schema,然後檢查 ManagedOnlineDeployment CodeConfiguration。使用所示的 model.predict_proba 呼叫重現已部署的請求,並將其回應與本機結果進行比較。當已部署 scoring 的回應包含類別機率,而不只是類別標籤時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- azure, jupyter-notebook, python
- 領域
- cloud, machine-learning
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100