Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/g/a/gaussian_processes-HEAD/gp/tests/test_gp.py   gaussian_processes(Download)
from .. import GaussianKernel as kernel
from .util import opt, rand_params, seed, allclose
from .util import approx_deriv, make_xy, make_xo
 
EPS = opt['eps']
def make_gp():
    x, y = make_xy()
    gp = GP(kernel(1, 1), x, y, s=1)
    return gp
 
 
def make_random_gp():
    x, y = make_xy()
def test_params():
    x, y = make_xy()
    h, w = rand_params('h', 'w')
    GP(kernel(h, w), x, y, s=0)
 

src/g/a/gaussian_processes-1.0.5/gp/tests/test_gp.py   gaussian_processes(Download)
from .. import GaussianKernel as kernel
from .util import opt, rand_params, seed, allclose
from .util import approx_deriv, make_xy, make_xo
 
EPS = opt['eps']
def make_gp():
    x, y = make_xy()
    gp = GP(kernel(1, 1), x, y, s=1)
    return gp
 
 
def make_random_gp():
    x, y = make_xy()
def test_params():
    x, y = make_xy()
    h, w = rand_params('h', 'w')
    GP(kernel(h, w), x, y, s=0)