From b27c5878005fddb749bf36eabfb4497135b91bdf Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 25 May 2017 06:46:59 -0500 Subject: [PATCH] Fix pieces argument to PrecomputedMaxout --- spacy/_ml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/_ml.py b/spacy/_ml.py index 4667798b2..f589704a6 100644 --- a/spacy/_ml.py +++ b/spacy/_ml.py @@ -86,10 +86,10 @@ class PrecomputableAffine(Model): d_b=Gradient("b") ) class PrecomputableMaxouts(Model): - def __init__(self, nO=None, nI=None, nF=None, pieces=3, **kwargs): + def __init__(self, nO=None, nI=None, nF=None, nP=3, **kwargs): Model.__init__(self, **kwargs) self.nO = nO - self.nP = pieces + self.nP = nP self.nI = nI self.nF = nF