Skip to content

Commit a158926

Browse files
author
rdevon
committed
Made the docs numpydoc compliant.
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.
1 parent 3f7eab9 commit a158926

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pylearn2/models/dbm/dbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from pylearn2.models.dbm.inference_procedure import WeightDoubling
2222
from pylearn2.models.dbm.inference_procedure import UpDown
2323
from pylearn2.models.dbm.sampling_procedure import GibbsEvenOdd
24-
from pylearn2.models.dbm import Softmax
24+
from pylearn2.models.dbm.layer import Softmax
2525
from pylearn2.utils import safe_zip, safe_izip
2626
from pylearn2.utils.rng import make_np_rng
2727

pylearn2/models/dbm/inference_procedure.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,4 @@ def is_rbm_compatible(self):
15391539
"""
15401540
Is implemented as UpDown is RBM compatible.
15411541
"""
1542-
<<<<<<< HEAD
15431542
return True
1544-
=======
1545-
return
1546-
>>>>>>> 20fa672... Made the docs numpydoc compliant.

0 commit comments

Comments
 (0)