dataiku-api-client-python icon indicating copy to clipboard operation
dataiku-api-client-python copied to clipboard

Incorrect documentation on `get_scoring_jar_stream` and `get_scoring_pmml_stream`

Open toby-coleman opened this issue 4 years ago • 0 comments

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.

toby-coleman avatar Nov 01 '21 10:11 toby-coleman