def __init__(self, gp, newton_step=1.0, newton_epsilon=1e-5, \
                 newton_max_iterations=20, newton_start=None):
        dim = len(gp.K)
        
        assert(newton_step > 0)
        assert(newton_epsilon > 0)
        assert(newton_max_iterations > 0)
        
        if newton_start is not None:
            assert(len(shape(newton_start)) == 1)
            assert(len(newton_start) == dim)
        
        self.gp = gp
        self.newton_step = newton_step
        self.newton_epsilon = newton_epsilon
        self.newton_max_iterations = newton_max_iterations
        self.newton_start = newton_start
        self.newton_start = newton_start
gp - underlying Gaussian process
dataset/ETHPy150Open karlnapf/kameleon-mcmc/kameleon_mcmc/gp/inference/LaplaceApproximation.py/LaplaceApproximation.__init__