MCPcopy Index your code
hub / github.com/scikit-learn/scikit-learn / func

Function func

sklearn/utils/tests/test_optimize.py:22–24  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

20 x0 = np.ones(10)
21
22 def func(x):
23 Ax = A.dot(x)
24 return 0.5 * (Ax).dot(Ax)
25
26 def grad(x):
27 return A.T.dot(A.dot(x))

Callers 8

wrapperFunction · 0.50
_apply_on_subsetsFunction · 0.50
check_fit_score_takes_yFunction · 0.50
wrapperFunction · 0.50
_newton_cgFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…