Title: Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream` · Issue #187 · dataiku/dataiku-api-client-python · GitHub
Open Graph Title: Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream` · Issue #187 · dataiku/dataiku-api-client-python
X Title: Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream` · Issue #187 · dataiku/dataiku-api-client-python
Description: 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...
Open Graph Description: 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...
X Description: 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 cl...
Opengraph URL: https://github.com/dataiku/dataiku-api-client-python/issues/187
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream`","articleBody":"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.\r\n\r\nIn fact they return `requests.Response` objects, so correct usage is along the lines of \r\n```python\r\nresponse = model_details.get_scoring_pmml_stream()\r\npmml_xml = response.content\r\n```\r\n\r\nThe documentation should be updated to reflect this: see [here](https://github.com/dataiku/dataiku-api-client-python/blob/master/dataikuapi/dss/ml.py#L2619) and [here](https://github.com/dataiku/dataiku-api-client-python/blob/master/dataikuapi/dss/ml.py#L2643).","author":{"url":"https://github.com/toby-coleman","@type":"Person","name":"toby-coleman"},"datePublished":"2021-11-01T10:05:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/187/dataiku-api-client-python/issues/187"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8e93d21d-1be9-cca6-b5d7-a694744dfe69 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98B8:63E9D:87859A:AE3CD9:69920F60 |
| html-safe-nonce | ce0021a761db9aeec0f3b3cb6e6bc5951f18e7bf2b6ead9be9b9798ff26f35eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEI4OjYzRTlEOjg3ODU5QTpBRTNDRDk6Njk5MjBGNjAiLCJ2aXNpdG9yX2lkIjoiMTYwMTg2NTYxNTk2NjA4MDg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1cd029f4b9c2deff554199fab79ff95e825bdc1fd51968057e700f3543592b0f |
| hovercard-subject-tag | issue:1040996165 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dataiku/dataiku-api-client-python/187/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b97abe4af7b5b26cbf014b82232f155ce05d08c360676cb7649eec94e6091dd1/dataiku/dataiku-api-client-python/issues/187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b97abe4af7b5b26cbf014b82232f155ce05d08c360676cb7649eec94e6091dd1/dataiku/dataiku-api-client-python/issues/187 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | toby-coleman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/dataiku/dataiku-api-client-python git https://github.com/dataiku/dataiku-api-client-python.git |
| octolytics-dimension-user_id | 2335170 |
| octolytics-dimension-user_login | dataiku |
| octolytics-dimension-repository_id | 40004578 |
| octolytics-dimension-repository_nwo | dataiku/dataiku-api-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40004578 |
| octolytics-dimension-repository_network_root_nwo | dataiku/dataiku-api-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width