def test_lse_3(): lse = LogSumExponential() assert lse.radius == 1.0 lse_vals = [lse.f(x) for x in t()] assert_array_less(lse_vals, true_t())
def test_lse_2(): lse = LogSumExponential(20.0) lse_vals = [lse.f(x) for x in t()] assert_array_less(lse_vals, true_t())