Skip to content

TypeError when loading model using methodcaller #283

@merveenoyan

Description

@merveenoyan

Came across this error for only this model generated using the test case generation script in api-inference-community:
*** TypeError: methodcaller needs at least one argument, the method name

To reproduce:

from skops import hub_utils
hub_utils.download(repo_id = "skops-tests/textclassification-sklearn-latest-hist_gradient_boosting-with-config-skops", dst="model_dir")

import skops.io as sio
sio.load("/content/model_dir/skops-v588xnq6.skops", trusted=True)

At first I thought something might've been wrong with how I serialize it but I think it's weird how every test passes and this model fails for inference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpersistenceSecure persistence feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions