From a6fcdc28943ac98714e36a47a58dc4a03f2e69c0 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Mon, 10 Oct 2016 10:09:29 +0100 Subject: [PATCH] Fixing typo in initialiser assert. --- mlp/initialisers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlp/initialisers.py b/mlp/initialisers.py index 3024d55..72664e1 100644 --- a/mlp/initialisers.py +++ b/mlp/initialisers.py @@ -100,7 +100,7 @@ class GlorotUniformInit(object): def __call__(self, shape): assert len(shape) == 2, ( - 'Initialiser should only be used for two dimensional arrays'.) + 'Initialiser should only be used for two dimensional arrays.') std = self.gain * (2. / (shape[0] + shape[1]))**0.5 half_width = 3.**0.5 * std return self.rng.uniform(low=-half_width, high=half_width, size=shape)