Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

How to use callbacks #686

@dmpetrov

Description

@dmpetrov

I'm creating a callback "model":

>>> def pre(x: list) -> float: return x[0]*x[1]*x[2]*x[3]
>>> m = save(pre, "my_func1")

However, it cannot be applied to a dataframe d1-m:

$ mlem apply my_func d1-m --output of
⏳️ Loading data from d1-m.mlem
⏳️ Loading model from my_func.mlem
🍏 Applying `predict` method...
❌ Unexpected error: 'predict'
Use the --tb or --traceback option to include the traceback in the output
Please report it here: <https://github.com/iterative/mlem/issues>

How to do that properly?

Metadata

Metadata

Assignees

Labels

applyBatch scoring and inferencingbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions