Skip to content

weighted loss for different class 为不同数据的loss分配不同的权重 #3654

@Li-Jicheng

Description

@Li-Jicheng

Hi, I'm wondering if there's a way to assign different weights on different data samples.

For example, the input data contains sample for task1, task2, task3, .... 。And samples from different tasks can be easily distinguished, either by sample index or prompt.

How can I assign more penalty on task2 for misclassification?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions