snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.89k stars 513 forks source link

Add noise re-weight factor #815

Closed adrienball closed 5 years ago

adrienball commented 5 years ago

Description: This PR introduces a new parameter in the LogRegIntentClassifierConfig which is named noise_reweight_factor. This parameter allows to deviate from the default "balanced" class weight strategy by multiplying the Noise class weight by a given factor. Typically, using noise_reweight_factor > 1 will end up in a more conservative engine, meaning that it will predict None more often, and vice versa.

Checklist:

codecov-io commented 5 years ago

Codecov Report

Merging #815 into develop will increase coverage by 0.01%. The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #815      +/-   ##
===========================================
+ Coverage    88.47%   88.48%   +0.01%     
===========================================
  Files           76       76              
  Lines         4608     4613       +5     
  Branches       894      895       +1     
===========================================
+ Hits          4077     4082       +5     
  Misses         395      395              
  Partials       136      136
codecov-io commented 5 years ago

Codecov Report

Merging #815 into develop will increase coverage by 0.01%. The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #815      +/-   ##
===========================================
+ Coverage    88.47%   88.48%   +0.01%     
===========================================
  Files           76       76              
  Lines         4608     4613       +5     
  Branches       894      895       +1     
===========================================
+ Hits          4077     4082       +5     
  Misses         395      395              
  Partials       136      136