Weak-Regime Tests
- class WeakRegime_AcceptanceInterval
Bases:
ITestWeakRegimeAcceptance-Interval test implementation of the weak-regime test
ITestWeakRegimeinterface as used bymCIT.- __init__(hyperparams: IProvideHyperparamsForAcceptanceInterval, cit: ITestCI, cit_variance_estimate: IProvideVarianceForCIT, min_regime_fraction: float = 0.15)
Construct from hyper-parameter set and cit-specific dependency-score estimator variance.
- Parameters:
hyperparams (IProvideHyperparamsForAcceptanceInterval) – Hyper-parameter set to use.
cit (ITestCI) – Underlying CIT.
cit_variance_estimate (IProvideVarianceForCIT) – A cit-specific estimate of the dependency-score estimator’s variance.
min_regime_fraction (float) – Minimum fraction of data-points in a regime to be considered.
- has_true_regime(data: CIT_DataPatterned) bool
Implements functionality of interface
ITestWeakRegime.Test if the non-homogenous data supplied by the query contains a true or just a weak regime.
- Parameters:
data (CIT_DataPatterned) – The non-homogenous data to inspect.
- Returns:
The truth-value indicating if the data-set is beliefed to feature a true regime.
- Return type:
bool