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