MCPcopy Create free account
hub / github.com/christopherjenness/ML-lib / newtonsmethod

Function newtonsmethod

ML/descentmethods.py:116–149  ·  view source on GitHub ↗

Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.ndarray): Target values of shape[n_samples, 1] gradient (function): Function to compute the gradient Gradient is a function of (X, y, weights) hessien (function): Function to co

(X, y, gradient, hessian, alpha=0.01, iterations=10000,
                  initial_weights=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

hessianFunction · 0.85
gradientFunction · 0.85

Tested by

no test coverage detected