Skip to content

is it possible to change the loss function in classification? #298

@fyears

Description

@fyears

Obviously, in

nn.CrossEntropyLoss(weight=class_weight)

the loss function is cross entropy.

But I would like to use another loss function (focal loss for imbalanced data)

Is it possible?

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