OCDocker.OCScore.Analysis package

Subpackages

Submodules

Module contents

Unified exports for the OCScore Analysis package.

Usage:

import OCDocker.OCScore.Analysis as ocanalysis

Modules (current / staged pipeline)

  • Metrics: Screening and regression metric helpers.

  • Plotting: Cross-validation, baseline, and metrics plots.

  • SHAP: Pipeline-native SHAP for exported model bundles.

OCDocker.OCScore.Analysis.evaluate_screening_metrics(y_true, y_score, groups=None, higher_is_better=True, bedroc_alpha=20.0)[source]

Evaluate DUDEz classification and early-recognition metrics.

Classifier logits and probabilities should use higher_is_better=True. Lower-is-better docking scores must set higher_is_better=False.

When groups is provided, BEDROC, EF, and NDCG are averaged across targets/receptors with both actives and decoys present.

Parameters:
  • bedroc_alpha (float, optional) – Exponential BEDROC weighting factor, by default 20.0.

  • y_true (ndarray)

  • y_score (ndarray)

  • groups (ndarray | None)

  • higher_is_better (bool)

Return type:

dict[str, float]

Staged-pipeline analysis surface (metrics, plotting, export SHAP).