#NEWLINE# def _mean_hiddens( self , v ) : #NEWLINE# #INDENT# 'Computes the probabilities P(h=1|v).\n\n        Parameters\n        ----------\n        v : array-like, shape (n_samples, n_features)\n            Values of the visible layer.\n\n        Returns\n        -------\n        h : array-like, shape (n_samples, n_components)\n            Corresponding mean field values for the hidden layer.\n        ' #NEWLINE# p = safe_sparse_dot ( v , self . components_ . T ) #NEWLINE# p += self . intercept_hidden_ #NEWLINE# return expit ( p , out = p )