def set_Y(self, Y):
assert isinstance(Y, (np.ndarray, ObsAr))<EOL>state = self.update_model()<EOL>self.update_model(False)<EOL>if self.normalizer is not None:<EOL><INDENT>self.normalizer.scale_by(Y)<EOL>self.Y_normalized = ObsAr(self.normalizer.normalize(Y))<EOL>self.Y = Y<EOL><DEDENT>else:<EOL><INDENT>self.Y = ObsAr(Y) if isinstance(Y, np.ndarray) else Y<EOL>self.Y_normalized = self.Y<EOL><DEDENT>self.update_model(state)<EOL>
Set the output data of the model

:param Y: output observations
:type Y: np.ndarray or ObsArray