Skip to content

Tuning scoring in a config file, and want to specify cats_f_per_type #9282

Discussion options

You must be logged in to vote

The weights here are only used for the eval display and early stopping, not within the component itself while training.

On the component config side of things, you can try adjusting threshold in the config.

You can also provide a positive_label in your config (in the [initialize.components.textcat] block) to have the overall cats_score that's used for early stopping be the positive F rather than the average of positive and negative F. You would need to add a positive weight to cats_score in the score weights above. See: https://spacy.io/api/textcategorizer#pipe (the anchor in the link looks odd, but look for the example next to TextCategorizer.initialize)

And from these results I would gu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lolologist
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 / config Feature: Training config feat / scorer Feature: Scorer
2 participants