spaCy/spacy/cli
Matthew Honnibal f57bea8ab6
💫 Prevent parser from predicting unseen classes (#3075)
The output weights often return negative scores for classes, especially
via the bias terms. This means that when we add a new class, we can't
rely on just zeroing the weights, or we'll end up with positive
predictions for those labels.

To solve this, we use nan values as the initial weights for new labels.
This prevents them from ever coming out on top. During backprop, we
replace the nan values with the minimum assigned score, so that we're
still able to learn these classes.
2018-12-20 16:12:22 +01:00
..
converters Tidy up merge conflict leftovers 2018-12-18 13:58:30 +01:00
schemas 💫 Replace ujson, msgpack and dill/pickle/cloudpickle with srsly (#3003) 2018-12-03 01:28:22 +01:00
ud Remove unused cytoolz / itertools imports 2018-12-03 02:12:07 +01:00
__init__.py 💫 New JSON helpers, training data internals & CLI rewrite (#2932) 2018-11-30 20:16:14 +01:00
convert.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
debug_data.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
download.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
evaluate.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
info.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
init_model.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
link.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00
package.py Fix formatting of meta.json after spacy package 2018-12-19 14:36:08 +01:00
pretrain.py Remove unused code from spacy pretrain 2018-12-18 19:19:26 +01:00
profile.py Fix cytoolz import cytoolz 2018-12-06 16:04:12 +01:00
train.py 💫 Prevent parser from predicting unseen classes (#3075) 2018-12-20 16:12:22 +01:00
validate.py Small CLI improvements (#3030) 2018-12-08 11:49:43 +01:00