From 08c5bcbce4335f8a18fce775678d68c5f411c898 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Mon, 19 Sep 2016 11:16:21 +0100 Subject: [PATCH] Tidying up headers. --- mlp/costs.py | 2 +- mlp/initialisers.py | 3 +-- mlp/learning_rules.py | 1 + mlp/models.py | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mlp/costs.py b/mlp/costs.py index 9532af1..351980b 100644 --- a/mlp/costs.py +++ b/mlp/costs.py @@ -1,6 +1,6 @@ +# -*- coding: utf-8 -*- """Model costs.""" - import numpy as np diff --git a/mlp/initialisers.py b/mlp/initialisers.py index b9b1614..243adc2 100644 --- a/mlp/initialisers.py +++ b/mlp/initialisers.py @@ -5,8 +5,7 @@ This module defines classes to initialise the parameters in a layer. """ import numpy as np - -DEFAULT_SEED = 123456 # Default random number generator seed if none provided. +from mlp import DEFAULT_SEED class ConstantInit(object): diff --git a/mlp/learning_rules.py b/mlp/learning_rules.py index 4c771cd..2910800 100644 --- a/mlp/learning_rules.py +++ b/mlp/learning_rules.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Learning rules.""" import numpy as np diff --git a/mlp/models.py b/mlp/models.py index 18fff11..8649d35 100644 --- a/mlp/models.py +++ b/mlp/models.py @@ -1,6 +1,5 @@ -""" -Model definitions. -""" +# -*- coding: utf-8 -*- +"""Model definitions.""" from mlp.layers import LayerWithParameters