known = {get_transformed(k): v for k, v in local_rv.items()}
self.known = known
self.local_vars = [v for v in model.free_RVs if v in known]
self.global_vars = [v for v in model.free_RVs if v not in known]
self.order = ArrayOrdering(self.local_vars + self.global_vars)
self.flat_view = model.flatten(
vars=self.local_vars + self.global_vars