def check_dprx_dbeta(self):
def func_prx(beta, expcm, r, x):<EOL><INDENT>expcm.updateParams({'<STR_LIT>':beta[<NUM_LIT:0>]})<EOL>return expcm.prx[r][x]<EOL><DEDENT>def func_dprx(beta, expcm, r, x):<EOL><INDENT>expcm.updateParams({'<STR_LIT>':beta[<NUM_LIT:0>]})<EOL>return expcm.dprx['<STR_LIT>'][r][x]<EOL><DEDENT>for r in range(self.nsites):<EOL><INDENT>for x in range(N_CODON):<EOL><INDENT>diff = scipy.optimize.check_grad(func_prx, func_dprx,<EOL>[self.expcm_divpressure.beta], self.expcm_divpressure, r, x, epsilon=<NUM_LIT>)<EOL>self.assertTrue(diff < <NUM_LIT>,<EOL>"<STR_LIT>".format(<EOL>diff, r, x))<EOL><DEDENT><DEDENT>self.expcm_divpressure.updateParams(self.params)<EOL>
Checks derivatives of `prx` with respect to `beta`.