#NEWLINE# def likelihood( self , beta ) : #NEWLINE# #INDENT# ' Creates the negative log-likelihood of the model\n\n\t\tParameters\n\t\t----------\n\t\tbeta : np.ndarray\n\t\t\tContains untransformed starting values for parameters\n\n\t\tReturns\n\t\t----------\n\t\tThe negative logliklihood of the model\n\t\t' #NEWLINE# ( mu , Y ) = self . model ( beta ) #NEWLINE# return ( - np . sum ( ss . norm . logpdf ( Y , loc = self , scale = self . param_desc [ ( len ( beta ) - 1 ) ] [ 'prior' ] . transform ( beta [ ( len ( beta ) - 1 ) ] ) ) ) )