model.predict_proba is not working in scoring script for classification
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- azure, jupyter-notebook, python
调研方向
从 scoring_script.py 开始,尤其检查 run 函数及其输入/输出 schema,然后检查 ManagedOnlineDeployment CodeConfiguration。使用所示的 model.predict_proba 调用重现已部署的请求,并将其响应与本地结果进行比较。当已部署 scoring 的响应包含类别概率,而不仅仅是类别标签时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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,
),
)
- 主要语言
- Jupyter Notebook
- 星标
- 4.5k
- 派生
- 2.6k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/MachineLearningNotebooks 的其他 Issue
-
Incorrect type hint for azure.ai.ml.sweep.Choice可能重新可做 @Riddhi743 于 104 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
Azure/MachineLearningNotebooks#1975 · 1 条评论 ·
-
duplicates未关闭
难度 1/5 1 小时以内 新手友好度 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine未关闭
难度 5/5 一周以上 新手友好度 10/100
Azure/MachineLearningNotebooks#1987 ·
-
难度 5/5 一周以上 新手友好度 25/100
Azure/MachineLearningNotebooks#1985 · 1 条评论 ·
-
Dependencies to azure-storage-blob should be updated可能已有人在做 @PraveenMudalgeri 于 486 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
Azure/MachineLearningNotebooks#1981 · 1 个 reaction ·
查看 Azure/MachineLearningNotebooks 的全部 Issue
相似的 Issue
-
ec2-subnet, security-group and internet-gateway skip all resources when one is deleted during the scan可能已有人在做 @toabctl 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
gruntwork-io/cloud-nuke#1208 ·
维护者通常 5 天内回复
-
documentation enhancement
难度 2/5 1-3 小时 新手友好度 82/100
aws/aws-networking-best-practices#252 ·
维护者通常 1 天内回复
-
bug maintainer-managed
难度 2/5 1-3 小时 新手友好度 75/100
awslabs/visual-asset-management-system#2258 · 1 条评论 ·
维护者通常 1 天内回复
-
Language: Terraform :globe_with_meridians: Needs: Triage :mag: Type: Bug :bug:
难度 2/5 1-3 小时 新手友好度 76/100
Azure/terraform-azurerm-avm-res-storage-storageaccount#450 · 1 条评论 ·
维护者通常 1 天内回复
-
A quote or backslash in private registry credentials renders invalid JSON可能已有人在做 @blacksoxx 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
kubescape/helm-charts#1057 ·
维护者通常 1 天内回复