Public API¶
This page lists the stable, supported import paths for CausalRL. Anything not listed here may change without notice.
Core entry points¶
crl.evaluate_ope- end-to-end OPE pipeline returning anOpeReport.crl.run_spec- run anEvaluationSpecand return anEvaluationResult.crl.evaluate- compatibility wrapper (spec usage deprecated).crl.ope.evaluate_ope- same entry point, explicit module import.crl.ope.OpeReport- aggregate report for an OPE run.crl.set_seed- seed Python/NumPy/torch RNGs.
Estimands and assumptions¶
crl.PolicyValueEstimandcrl.PolicyContrastEstimandcrl.SensitivityPolicyValueEstimandcrl.ProximalPolicyValueEstimandcrl.Assumptioncrl.AssumptionSet
Datasets¶
crl.data.BanditDatasetcrl.data.LoggedBanditDatasetcrl.data.TrajectoryDatasetcrl.data.TransitionDataset
Behavior policy estimation¶
crl.fit_behavior_policycrl.BehaviorPolicyFit
Policies¶
crl.policies.Policycrl.policies.StochasticPolicycrl.policies.CallablePolicycrl.policies.TabularPolicycrl.policies.TorchMLPPolicy
Estimator selection¶
crl.select_estimatorcrl.SelectionResult
Dataset adapters¶
crl.load_d4rl_datasetcrl.load_rl_unplugged_dataset
Estimators and reports¶
crl.estimators.OPEEstimatorcrl.estimators.EstimatorReportcrl.estimators.UncertaintySummarycrl.estimators.DiagnosticsConfigcrl.estimators.ISEstimatorcrl.estimators.WISEstimatorcrl.estimators.PDISEstimatorcrl.estimators.DoublyRobustEstimatorcrl.estimators.WeightedDoublyRobustEstimatorcrl.estimators.MAGICEstimatorcrl.estimators.MRDREstimatorcrl.estimators.MarginalizedImportanceSamplingEstimatorcrl.estimators.FQEEstimatorcrl.estimators.DualDICEEstimatorcrl.estimators.GenDICEEstimatorcrl.estimators.DoubleRLEstimatorcrl.estimators.DRLEstimatorcrl.estimators.HighConfidenceISEstimator
API namespace¶
crl.apire-exports the stable surface for convenience in scripts.