[parameterization] Parameter adding more robust and better error handling

This commit is contained in:
mzwiessele 2014-08-15 08:39:14 -07:00
parent 051a8115a2
commit 5f863e8ca2
3 changed files with 19 additions and 5 deletions

View file

@ -111,7 +111,7 @@ class VariationalPosterior(Parameterized):
n.input_dim = n.mean.shape[1] if n.ndim != 1 else 1
return n
else:
return super(VariationalPrior, self).__getitem__(s)
return super(VariationalPosterior, self).__getitem__(s)
class NormalPosterior(VariationalPosterior):
'''