Skip to content
Snippets Groups Projects
Commit 2c95b130 authored by Scott Linderman's avatar Scott Linderman
Browse files

fixing mask bug in factor_analysis

parent 3fedd5e7
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,9 @@ class FactorAnalysisStates(object):
def __init__(self, model, data, mask=None, **kwargs):
self.model = model
self.X = data
self.mask = mask
if mask is None:
mask = np.ones_like(data, dtype=bool)
self.mask = mask
assert data.shape == mask.shape and mask.dtype == bool
assert self.X.shape[1] == self.D_obs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment