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

Function register

crates/pyopenquant/src/onc.rs:37–43  ·  view source on GitHub ↗
(py: Python<'_>, parent: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

35/// -------
36/// dict[str, Any]
37/// `ordered_correlation` (list[list[float]], the input permuted so each cluster's
38/// members are contiguous), `clusters` (dict[int, list[int]], cluster label to member
39/// indices in the input's row order) and `silhouette_scores` (list[float], one per
40/// item in the input's row order; 0 for a singleton cluster's member).
41///
42/// Raises
43/// ------
44/// ValueError
45/// If `corr_mat` is empty or ragged, or the core rejects the input (e.g. `repeat` of
46/// 0, a non-square matrix or fewer than two rows, or NaN entries that leave no

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected