Permalink
Browse files

Tidying/logging for NN impl

  • Loading branch information...
1 parent d78a661 commit 34b504b0cdbb542cc3a28ea41f6132e504699995 @charmasaur charmasaur committed Dec 2, 2016
Showing with 2 additions and 4 deletions.
  1. +2 −4 mloop/nnlearner.py
View
@@ -9,16 +9,13 @@ class NeuralNetImpl():
Args:
num_params (int): The number of params.
-
-
- Attributes:
- TODO
'''
def __init__(self,
num_params = None):
self.log = logging.getLogger(__name__)
+ self.log.debug('Initialising neural network impl')
if num_params is None:
self.log.error("num_params must be provided")
raise ValueError
@@ -45,6 +42,7 @@ def _create_neural_net(self):
Creates the neural net with topology specified by the current hyperparameters.
'''
+ self.log.debug('Creating neural network')
# Forget about any old weights/biases
self.weights = []
self.biases = []

0 comments on commit 34b504b

Please sign in to comment.