riantr/moonbit_dowhy/overrule does not have a README file
pub struct BooleanRule {
alpha : Double
lambda0 : Double
lambda1 : Double
k : Int
d : Int
b : Int
iter_max : Int
eps : Double
rounding : RoundingStrategy
w : Array[Double]
w_raw : Array[Double]
z : Array[Array[Bool]]
lp_objective : Double
}fn BooleanRule::new(alpha : Double, lambda0 : Double, lambda1 : Double, k : Int, d : Int, b : Int, iter_max : Int, eps : Double, rounding : RoundingStrategy) -> BooleanRulefn FeatureBinarizer::new(names : Array[String], num_thresholds : Int, negations : Bool) -> FeatureBinarizerfn FeatureBinarizer::transform(self : FeatureBinarizer, columns : Array[Array[Double]]) -> BinarizedDatapub enum LiteralOperation {
Binary
Negation
LessEqual
Greater
}pub struct OverlapAnalyzer {
backdoor_vars : Array[String]
treatment_name : String
support_config : SupportConfig
overlap_config : OverlapConfig
overlap_eps : Double
support_only : Bool
overlap_only : Bool
support_estimator : RulesetEstimator?
overlap_estimator : RulesetEstimator?
support_indicator : Array[Bool]
overlap_indicator : Array[Bool]
raw_overlap : Array[Bool]
fitted : Bool
}fn OverlapAnalyzer::fit(self : OverlapAnalyzer, columns : Array[Array[Double]], treatment : Array[Double]) -> Unitfn OverlapAnalyzer::new(backdoor_vars : Array[String], treatment_name : String, support_config : SupportConfig, overlap_config : OverlapConfig, overlap_eps? : Double, support_only? : Bool, overlap_only? : Bool) -> OverlapAnalyzerfn OverlapAnalyzer::predict_overlap_support(self : OverlapAnalyzer, columns : Array[Array[Double]]) -> Array[Bool]pub struct OverlapConfig {
alpha : Double
lambda0 : Double
lambda1 : Double
k : Int
d : Int
b : Int
iter_max : Int
num_thresholds : Int
rounding : RoundingStrategy
}pub enum RoundingStrategy {
Greedy
GreedySweep
}pub struct RuleAtom {
feature : String
operation : String
value : String
}pub struct RulesetConfig {
n_ref_multiplier : Double
alpha : Double
lambda0 : Double
lambda1 : Double
k : Int
d : Int
b : Int
iter_max : Int
eps : Double
num_thresholds : Int
negations : Bool
rounding : RoundingStrategy
seed : Int
}pub struct RulesetEstimator {
config : RulesetConfig
binarizer : FeatureBinarizer
literals : Array[Literal]
rule : BooleanRule
fitted : Bool
}fn RulesetEstimator::fit(self : RulesetEstimator, columns : Array[Array[Double]], names : Array[String], labels : Array[Double]) -> Unitfn RulesetEstimator::predict(self : RulesetEstimator, columns : Array[Array[Double]]) -> Array[Bool]pub struct SupportConfig {
n_ref_multiplier : Double
seed : Int
alpha : Double
lambda0 : Double
lambda1 : Double
k : Int
d : Int
b : Int
iter_max : Int
num_thresholds : Int
rounding : RoundingStrategy
}fn beam_search(r : Array[Double], data : BinarizedData, lambda0 : Double, lambda1 : Double, k : Int, ub : Double, eps : Double, b : Int, d : Int, w_lb : Double) -> BeamSearchResultfn refute_assess_overlap(columns : Array[Array[Double]], names : Array[String], backdoor_vars : Array[String], treatment_name : String, support_config : SupportConfig, overlap_config : OverlapConfig, overlap_eps : Double, support_only : Bool, overlap_only : Bool) -> OverlapAnalyzerInstall
Download zipMoonBit port of DoWhy 0.14 (PyWhy). Causal graph construction and analysis, effect identification (backdoor / frontdoor / complete adjustment), estimation (linear regression, generalized linear model, propensity score weighting / matching / stratification, doubly robust, instrumental variable, two stage, regression discontinuity), refutation (bootstrap, placebo treatment, data subset, dummy outcome, unobserved common cause, the assess overlap refuter that learns the rules of the support and of the overlap with boolean rules), intervention sampling (do samplers), temporal graphs, causal discovery (the PC algorithm with the Fisher-z test) and the portable core of the graphical causal models (the p-value merging, the bootstrap confidence intervals, the Kullback-Leibler divergences, the density estimators, the Shapley values, the independence tests, the prediction models, the causal mechanisms, the fitting of a causal model, the what-if queries (the interventional samples, the counterfactual samples and the average causal effect), the validation layer (the kernel based conditional independence test, the validation of a causal structure and the validation of an invertible model) and the falsification layer (the local Markov condition, the pairwise dependencies, the parental d-separations, the causal minimality and the permutation test of a graph) and the model evaluation layer (the normalised mean squared error, the continuous ranked probability score, the performance of the causal mechanisms, the test of the invertibility assumption and the report of the evaluation) and the distribution change layer (the test of the change of a mechanism, the attribution of the change of the distribution of a target node, the multiply-robust attribution of the change of the mean or of the variance of a target node and the scores of the change of the distribution of every node). Pure MoonBit with zero external runtime dependencies.