Skip to content

Multilabel textcat (transformers): Weights for classes in loss function (Unbalanced data) #7256

Discussion options

You must be logged in to vote

I think right now, the only way to accomplish that, is to create a new subclass of the MultiLabel_TextCategorizer object and reimplement the get_loss function (note that this function is defined by the class TextCategorizer)

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@vsocrates
Comment options

@vsocrates
Comment options

@biomed-model
Comment options

@vsocrates
Comment options

@biomed-model
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / textcat Feature: Text Classifier
7 participants