180 std::unique_ptr<T>
const& m,
205 std::optional<double>
211 std::optional<double>
218 return error(*m, x, y);
Mode-specific evaluation metric blocks.
Random forest of classification trees.
Definition ClassificationForest.hpp:18
Abstract base class for projection pursuit random forests.
Definition Forest.hpp:31
Abstract base class for predictive models (trees and forests).
Definition Model.hpp:29
Random forest of regression trees.
Definition RegressionForest.hpp:13
Abstract base class for projection pursuit decision trees.
Definition Tree.hpp:29
Eigen::Matrix< Feature, Eigen::Dynamic, Eigen::Dynamic > FeatureMatrix
Dynamic-size matrix of feature values.
Definition Types.hpp:33
Eigen::Matrix< Outcome, Eigen::Dynamic, 1 > OutcomeVector
Dynamic-size column vector of predictions.
Definition Types.hpp:42
Eigen::Matrix< GroupId, Eigen::Dynamic, 1 > GroupIdVector
Dynamic-size column vector of internal group labels.
Definition Types.hpp:39
Eigen::Matrix< Feature, Eigen::Dynamic, 1 > FeatureVector
Dynamic-size column vector of feature values.
Definition Types.hpp:36
Binarization strategies for multiclass-to-binary reduction.
Definition Benchmark.hpp:25
stats::ClassificationMetrics::Maybe oob_metrics(ClassificationForest const &forest, types::FeatureMatrix const &x, types::OutcomeVector const &y)
Out-of-bag metrics — sentinel-free summary of OOB performance.
types::FeatureVector vi_weighted_projections(Forest const &forest, types::FeatureMatrix const &x, types::OutcomeVector const &y, types::FeatureVector const *scale=nullptr)
VI3 — weighted projection-coefficient importance.
VariableImportance variable_importance(Tree const &tree, types::FeatureMatrix const &x)
Bundle the available VI measures for a single tree (VI2 only).
std::optional< double > oob_error(Forest const &forest, types::FeatureMatrix const &x, types::OutcomeVector const &y)
Out-of-bag error.
double error(Model const &model, types::FeatureMatrix const &x, types::OutcomeVector const &y)
Prediction error of model on data (x, y).
types::FeatureVector vi_permuted(Forest const &forest, types::FeatureMatrix const &x, types::OutcomeVector const &y, int seed)
VI1 — per-variable permuted importance.
types::FeatureVector vi_projections(Tree const &tree, int n_vars, types::FeatureVector const *scale=nullptr)
VI2 for a single tree — projection-coefficient importance.
types::OutcomeVector oob_predict(Forest const &forest, types::FeatureMatrix const &x)
Out-of-bag predictions.
Grouped result of the variable importance measures.
Definition Evaluation.hpp:39
types::FeatureVector permuted
VI1 — per-variable permuted importance (forest only).
Definition Evaluation.hpp:41
types::FeatureVector projections
VI2 — per-variable projection-coefficient importance.
Definition Evaluation.hpp:43
types::FeatureVector weighted_projections
VI3 — per-variable weighted-projection importance (forest only).
Definition Evaluation.hpp:45
types::FeatureVector scale
Per-variable σ used to rescale coefficients (columnwise sd).
Definition Evaluation.hpp:47
std::optional< ClassificationMetrics > Maybe
Definition Metrics.hpp:26
std::optional< RegressionMetrics > Maybe
Definition Metrics.hpp:53