#NEWLINE# def h( self , X , model ) : #NEWLINE# #INDENT# '\n        Computes `h` from the NCE paper.\n\n        Parameters\n        ----------\n        X : Theano matrix\n            Batch of input data\n        model : Model\n            Any model with a `log_prob` method.\n\n        Returns\n        -------\n        h : A theano symbol for the `h` function from the paper.\n        ' #NEWLINE# return ( - T . nnet . sigmoid ( self . G ( X , model ) ) )