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

Function _corr_matrix

python/openquant/feature_diagnostics.py:560–568  ·  view source on GitHub ↗
(x: Sequence[Sequence[float]])

Source from the content-addressed store, hash-verified

558 explained_ratio = explained_ratio[:kept]
559
560 transformed = []
561 for row in z:
562 transformed.append([_dot(row, comp) for comp in eigvecs])
563
564 columns = {f"pc{i+1}": [row[i] for row in transformed] for i in range(kept)}
565 table = pl.DataFrame(columns)
566
567 return {
568 "transformed": transformed,
569 "table": table,
570 "records": table.to_dicts(),
571 "components": eigvecs,

Callers 1

Calls 2

_standardizeFunction · 0.85
maxFunction · 0.85

Tested by

no test coverage detected