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