ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
VariableImportance.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "utils/Types.hpp"
4
5namespace ppforest2 {
6 struct Tree;
7 struct Forest;
33
48 types::FeatureMatrix const& x,
49 types::ResponseVector const& y,
50 int seed = 0);
51
66 variable_importance_projections(Forest const& forest, int n_vars, types::FeatureVector const* scale = nullptr);
67
79 variable_importance_projections(Tree const& tree, int n_vars, types::FeatureVector const* scale = nullptr);
80
95 types::FeatureMatrix const& x,
96 types::ResponseVector const& y,
97 types::FeatureVector const* scale = nullptr);
98}
Eigen::Matrix< Feature, Eigen::Dynamic, Eigen::Dynamic > FeatureMatrix
Dynamic-size matrix of feature values.
Definition Types.hpp:24
Eigen::Matrix< Feature, Eigen::Dynamic, 1 > FeatureVector
Dynamic-size column vector of feature values.
Definition Types.hpp:26
Eigen::Matrix< Response, Eigen::Dynamic, 1 > ResponseVector
Dynamic-size column vector of group labels.
Definition Types.hpp:29
Definition Benchmark.hpp:22
types::FeatureVector variable_importance_projections(Forest const &forest, int n_vars, types::FeatureVector const *scale=nullptr)
VI2 — Projections importance (forest).
types::FeatureVector variable_importance_weighted_projections(Forest const &forest, types::FeatureMatrix const &x, types::ResponseVector const &y, types::FeatureVector const *scale=nullptr)
VI3 — Weighted projections importance.
types::FeatureVector variable_importance_permuted(Forest const &forest, types::FeatureMatrix const &x, types::ResponseVector const &y, int seed=0)
VI1 — Permuted importance.
A projection pursuit random forest.
Definition Forest.hpp:32
A single projection pursuit decision tree.
Definition Tree.hpp:26
Grouped result of the three variable importance measures.
Definition VariableImportance.hpp:27
types::FeatureVector permuted
Definition VariableImportance.hpp:28
types::FeatureVector projections
Definition VariableImportance.hpp:29
types::FeatureVector weighted_projections
Definition VariableImportance.hpp:30
types::FeatureVector scale
Definition VariableImportance.hpp:31