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

Function _importance_table

python/openquant/feature_diagnostics.py:246–257  ·  view source on GitHub ↗
(feature_names: Sequence[str], per_feature_values: Sequence[Sequence[float]])

Source from the content-addressed store, hash-verified

244 if abs(factor) < _EPS:
245 continue
246 for j in range(col, n + 1):
247 aug[r][j] -= factor * aug[col][j]
248
249 return [aug[i][n] for i in range(n)]
250
251
252def _penalized_log_loss(
253 design: Sequence[Sequence[float]],
254 y: Sequence[float],
255 sw: Sequence[float],
256 beta: Sequence[float],
257 ridge: float,
258) -> float:
259 loss = 0.0
260 for row, yy, w in zip(design, y, sw):

Callers 3

mdi_importanceFunction · 0.85
mda_importanceFunction · 0.85
sfi_importanceFunction · 0.85

Calls 3

_meanFunction · 0.85
appendMethod · 0.80
_stdFunction · 0.70

Tested by

no test coverage detected