MCPcopy
hub / github.com/scikit-learn/scikit-learn / kfunc

Function kfunc

sklearn/svm/tests/test_sparse.py:180–181  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

178@pytest.mark.parametrize("lil_container", LIL_CONTAINERS)
179def test_svc_with_custom_kernel(lil_container):
180 def kfunc(x, y):
181 return safe_sparse_dot(x, y.T)
182
183 X_sp = lil_container(X)
184 clf_lin = svm.SVC(kernel="linear").fit(X_sp, Y)

Callers

nothing calls this directly

Calls 1

safe_sparse_dotFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…