Skip to content

Incorrect documentation on get_scoring_jar_stream and get_scoring_pmml_stream #187

Open
@toby-coleman

Description

@toby-coleman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions