Skip to content

qsarcert v1.2.0

Choose a tag to compare

@sircalch sircalch released this 30 Sep 21:01
· 5 commits to master since this release

Corrections found by applying QSARCert to 180 real models (MLR, ridge and random forests on ESOL,
FreeSolv and Lipophilicity, random and scaffold splits; validation/).

Fixed

  • Applicability domain: membership is decided by leverage alone (h <= h*). Compounds with high
    leverage but small residuals were counted as inside the domain, and residuals (unknown for new
    compounds) took part in the decision. One influential outlier no longer fails the whole check;
    the status follows the coverage.
  • Applicability domain: when h* >= 1 (e.g. fingerprints with more bits than compounds) the check is
    NOT_APPLICABLE instead of reporting meaningless leverages (they were clipped at 10). h* uses the
    rank of the design, which equals p + 1 for non-collinear descriptors.
  • Applicability domain: residuals are standardised with the training residual standard deviation
    (n - p - 1 degrees of freedom); assess_qsar_quality now accepts y_train_pred. Before, a robust
    scale of the test residuals was used, which hid large test errors.
  • Y-randomization: the OLS surrogate is NOT_APPLICABLE when its expected chance R^2, p/(n - 1), is
    0.5 or more. With fingerprints it reported a chance correlation for every model.
  • Split leakage: raw descriptors were compared by cosine similarity, which is close to 1 for almost
    every pair of molecules; nearly every test compound was flagged as a duplicate. Fingerprints are
    now compared by Tanimoto similarity; for continuous descriptors only identical inputs are counted.
    Exact duplicates are identical vectors, not cosine >= 0.9999.
  • Report provenance carried the version 1.0.0.

Added

  • perform_y_randomization(..., estimator=...): refits the user's model on permuted responses and
    scores it by k-fold cross-validated R^2; also expected_chance_r2 and a permutation p-value.
  • check_split_leakage(..., smiles_train=, smiles_test=): duplicate structures and shared
    Bemis-Murcko scaffolds (requires RDKit).
  • ApplicabilityDomainResult.design_rank, residual_scale, residual_scale_source.
  • Status NOT_APPLICABLE, which does not enter the overall decision.