From be85b7f17fec5cf8b8f8e20a990d6cb5f3eb608e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 10 Aug 2016 03:42:09 +0200 Subject: [PATCH] Don't do dropout in NN at the moment --- spacy/syntax/_neural.pyx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spacy/syntax/_neural.pyx b/spacy/syntax/_neural.pyx index d96407b10..583dea6d0 100644 --- a/spacy/syntax/_neural.pyx +++ b/spacy/syntax/_neural.pyx @@ -139,7 +139,11 @@ cdef class ParserNeuralNet(NeuralNet): cdef void _softmaxC(self, weight_t* out) nogil: pass - + + cdef void dropoutC(self, FeatureC* feats, weight_t drop_prob, + int nr_feat) nogil: + pass + def _update_from_history(self, TransitionSystem moves, Doc doc, history, weight_t grad): cdef Pool mem = Pool() features = mem.alloc(self.nr_feat, sizeof(FeatureC))