MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _predict_proba

Function _predict_proba

python/openquant/feature_diagnostics.py:195–196  ·  view source on GitHub ↗
(model: _LinearModel, x: Sequence[Sequence[float]])

Source from the content-addressed store, hash-verified

193 xtwy = [0.0 for _ in range(dim)]
194
195 for row, yy, w in zip(x, y, sw):
196 design = [1.0] + list(row)
197 for i in range(dim):
198 xtwy[i] += w * design[i] * yy
199 for j in range(dim):

Callers 2

_score_with_perm_groupsFunction · 0.85
sfi_importanceFunction · 0.85

Calls 2

_sigmoidFunction · 0.85
_dotFunction · 0.85

Tested by

no test coverage detected