Skip to content

Unused argument: custom_parsers #1119

@Fred51

Description

@Fred51

Hello there,

I was trying to see how I would write a custom parser to make it so that a model converted from xgboost classifier could only return probabilities, not the standard label and dictionary of probabilities. I eventually realized it didn't matter what I passed to custom_parsers in convert_sklearn, it returned the same output.

Diving into the code I noticed that, unless I'm missing something, this custom_parsers argument is unused in the parse_sklearn_simple_function.

Is there intention to make use of this parameter? Should it be removed or perhaps an error thrown that custom parsers are currently unsupported?

def _parse_sklearn_simple_model(scope, model, inputs, custom_parsers=None, alias=None):

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