Skip to content

Commit

Permalink
first yadll commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pchavanne committed Jun 19, 2016
1 parent cd48ccb commit e3cc15e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yadll/hyperparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ class Hyperparameters(object):
Examples
--------
Define the hyperparameters of the model:
>>> hp = Hyperparameters() # Create an Hyperparameters instance
>>> hp('batch_size', 500) # Define an hyperparameter with its default value
>>> hp('n_epochs', 1000, [10, 100, 1000, 1000]) # and range for the grid search
Grid search on the hyperparameters space:
>>> for param in hp:
>>> # Do something with this set of hyperparameters
Expand Down Expand Up @@ -63,4 +65,3 @@ def reset(self):
for name, value in self.hp_default.iteritems():
self.__setattr__(name, value)
self.iteration = 0

0 comments on commit e3cc15e

Please sign in to comment.