Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielpatrickhug/GitModel
/ compute_kernel
Function
compute_kernel
src/ml_models/graph_networks/kernels.py:145–149 ·
view source on GitHub ↗
(embs)
Source
from the content-addressed store, hash-verified
143
144
145
def
compute_kernel(embs):
146
# TODO match case to kernel type
147
A = cos_sim(embs, embs)
148
adj_matrix = A.numpy().astype(np.float32)
149
return
adj_matrix
150
151
152
def
degree_matrix(A):
Callers
nothing calls this directly
Calls
1
cos_sim
Function · 0.85
Tested by
no test coverage detected