def samples(self, gp, Y_metadata=None):
orig_shape = gp.shape<EOL>gp = gp.flatten()<EOL>weibull_samples = np.array([sp.stats.weibull_min.rvs(self.r, loc=<NUM_LIT:0>, scale=self.gp_link.transf(f)) for f in gp])<EOL>return weibull_samples.reshape(orig_shape)<EOL>
Returns a set of samples of observations conditioned on a given value of latent variable f.

:param gp: latent variable