dataiku / dataiku/dataiku-api-client-python
Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream`
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 44
- 派生
- 29
- 平均合并
- 3 小时 34 分钟
- 30 天内合并 PR
- 2
描述
I'm using DSS version 9.0.3. The documentation for ML model export functions get_scoring_jar_stream and get_scoring_pmml_stream says that they should return file-like objects that need to be closed after use.
In fact they return requests.Response objects, so correct usage is along the lines of
response = model_details.get_scoring_pmml_stream()
pmml_xml = response.content
The documentation should be updated to reflect this: see here and here.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 dataikuapi/dss/ml.py 中 get_scoring_jar_stream 和 get_scoring_pmml_stream 的文档,该文档链接位于第 2619 行和第 2643 行附近。更新这两处描述,说明它们返回的是 requests.Response 对象,而不是需要关闭的类文件对象,并确认文档中的用法与 response.content 一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100