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 20, 2016
1 parent 4a87ad9 commit d0ad20b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions yadll/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@

class Model(object):
"""
The :class: `Model` containes the data, the network, the hyperparameters,
and the report.
It pretrains unsupervised layers, trains the network and save to file.
Parameters
----------
network : :class:`Network`
the network to be trained
data : :class:`Data`
the training, validating and testing set
name : `string`
the name of the model
updates : :function:`Updates`
an update function
file : `string`
name of the file to save the model
"""
def __init__(self, network=None, data=None, hyperparameters=None, name=None,
Expand Down
6 changes: 3 additions & 3 deletions yadll/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def add(self, layer):
Parameters
----------
layer: :class: `Layer`
layer : :class: `Layer`
"""
self.layers.append(layer)
Expand All @@ -56,7 +56,7 @@ def params(self):
Returns
-------
params:
params :
list of parameters of the network
"""
Expand All @@ -68,7 +68,7 @@ def reguls(self):
Returns
-------
reguls: symbolic expresssion
reguls : symbolic expresssion
regularization cost for the network
"""
Expand Down

0 comments on commit d0ad20b

Please sign in to comment.