Skip to content

Compose cannot handle transforms that change data and label #279

Open
@bauerfe

Description

Dataset classes in tonic have a transforms parameter, which allows passing callables that are applied to both data and labels, as opposed to transform which is only applied to the data.

It seems that composition with the Compose class is currently only possible for transform-type functions that only change the data. This could be fixed easily by changing the events parameter in the call method to *events and adapting the function code accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions