Skip to content

Commit

Permalink
Made the docs numpydoc compliant.
Browse files Browse the repository at this point in the history
Modified inference procedure to have a method "is_rbm_compatible" that will raise a NotImplementedError if not appropriate for RBM.
Removed assert for RBM and UpDown inference.
  • Loading branch information
rdevon committed Nov 7, 2014
1 parent 3f7eab9 commit a158926
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion pylearn2/models/dbm/dbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pylearn2.models.dbm.inference_procedure import WeightDoubling
from pylearn2.models.dbm.inference_procedure import UpDown
from pylearn2.models.dbm.sampling_procedure import GibbsEvenOdd
from pylearn2.models.dbm import Softmax
from pylearn2.models.dbm.layer import Softmax
from pylearn2.utils import safe_zip, safe_izip
from pylearn2.utils.rng import make_np_rng

Expand Down
4 changes: 0 additions & 4 deletions pylearn2/models/dbm/inference_procedure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,8 +1539,4 @@ def is_rbm_compatible(self):
"""
Is implemented as UpDown is RBM compatible.
"""
<<<<<<< HEAD
return True
=======
return
>>>>>>> 20fa672... Made the docs numpydoc compliant.

0 comments on commit a158926

Please sign in to comment.