cleverly.interventions.SupportBoundary#
- class cleverly.interventions.SupportBoundary(learner: Any, q: float, features: tuple[str, ...] = (), bandwidth: Literal['silverman', 'undersmoothed'] = 'silverman')[source]#
The cap at a learned conditional quantile of the dose:
c(h).The learner is
LinearQuantileRegressionor an unfitted scikit-learn regressor that estimates the level-qconditional quantile, for exampleGradientBoostingRegressor(loss="quantile", alpha=q). The fit clones it and fits it on the units at risk. OnlyLinearQuantileRegressionhas a finite-dimensional parameter, so a different learner supportstarget="fold_average"only.- Parameters:
- learner
LinearQuantileRegressionorestimator The boundary learner.
- q
float The quantile level, in
(0, 1).- features
tupleofstr The policy-frame columns a learner other than
LinearQuantileRegressionreads. Empty forLinearQuantileRegression, which names its own.- bandwidth{“silverman”, “undersmoothed”}
The bandwidth rule of the derivative and of \(J\).
- learner
- Attributes:
feature_namestupleofstrThe policy-frame columns the boundary reads.
finite_dimensionalboolWhether the boundary is indexed by a finite vector that solves an estimating equation.
Methods#
Attributes#
- SupportBoundary.feature_names#
The policy-frame columns the boundary reads.
- SupportBoundary.finite_dimensional#
Whether the boundary is indexed by a finite vector that solves an estimating equation.