ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
Projectors.hpp
Go to the documentation of this file.
1#pragma once
2
4#include "utils/Types.hpp"
5
6#include <Eigen/Dense>
7#include <vector>
8
9namespace ppforest2::test {
18 inline pp::Projector as_projector(std::vector<types::Feature> v) {
19 return Eigen::Map<pp::Projector>(v.data(), v.size());
20 }
21}
types::FeatureVector Projector
Column vector of projection coefficients (one per variable).
Definition Projector.hpp:6
Definition MockStop.hpp:10
pp::Projector as_projector(std::vector< types::Feature > v)
Build a Projector from a std::vector<Feature> initializer.
Definition Projectors.hpp:18