Expand description
Nuisance learners: the Regressor / Classifier traits and the
built-in implementations.
Structs§
- Gradient
Boosting Classifier - Gradient boosting for 0/1 classification (log loss). Defaults match
scikit-learn’s
GradientBoostingClassifier. - Gradient
Boosting Regressor - Gradient boosting for regression (squared error). Defaults match
scikit-learn’s
GradientBoostingRegressor: 100 stages, learning rate 0.1, depth-3 trees. - Lasso
- Lasso regression with an unpenalised intercept, fitted by cyclic coordinate descent.
- LassoCV
- Lasso with the penalty chosen by K-fold cross-validation, as
scikit-learn’s
LassoCV. - Logistic
Regression - L2-penalised logistic regression with an unpenalised intercept, fitted by Newton’s method with backtracking line search.
- Logistic
RegressionCV - L2-penalised logistic regression with
Cchosen by stratified K-fold cross-validation, as scikit-learn’sLogisticRegressionCV. - Ols
- Ordinary least squares with an intercept and optional ridge penalty.
- Random
Forest Classifier - Random forest classifier for 0/1 labels;
predict_probaaverages the class-1 frequency of the leaves. - Random
Forest Regressor - Random forest regressor (squared-error CART trees on bootstrap samples).
Enums§
- CvScoring
- Criterion for choosing
CinLogisticRegressionCV. - MaxFeatures
- Number of features considered at each split.
Traits§
- Classifier
- A classification learner returning
P(label = 1 | X), used for propensity scores in models with a binary treatment such asIrm. - Regressor
- A regression learner for nuisance functions such as
E[Y | X]orE[D | X].