dataiku-api-client-python
dataiku-api-client-python copied to clipboard
Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream`
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.