mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-15 02:32:37 +03:00
Don't do dropout in NN at the moment
This commit is contained in:
parent
0fb188c76c
commit
be85b7f17f
|
@ -139,7 +139,11 @@ cdef class ParserNeuralNet(NeuralNet):
|
||||||
|
|
||||||
cdef void _softmaxC(self, weight_t* out) nogil:
|
cdef void _softmaxC(self, weight_t* out) nogil:
|
||||||
pass
|
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):
|
def _update_from_history(self, TransitionSystem moves, Doc doc, history, weight_t grad):
|
||||||
cdef Pool mem = Pool()
|
cdef Pool mem = Pool()
|
||||||
features = <FeatureC*>mem.alloc(self.nr_feat, sizeof(FeatureC))
|
features = <FeatureC*>mem.alloc(self.nr_feat, sizeof(FeatureC))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user