|
factorize
Create factors from categorical variables
|
Combine categorical variables into a single factor. More...
#include <algorithm>#include <vector>#include <map>#include <unordered_map>#include <cstddef>#include "sanisizer/sanisizer.hpp"#include "create_factor.hpp"#include "utils.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | factorize |
| Create factors from categorical variables. | |
Functions | |
| template<typename Input_ , typename Code_ > | |
| std::vector< std::vector< Input_ > > | factorize::combine_to_factor (const std::size_t n, const std::vector< const Input_ * > &inputs, Code_ *const codes) |
| template<typename Input_ , typename Number_ , typename Code_ > | |
| std::vector< std::vector< Input_ > > | factorize::combine_to_factor_unused (const std::size_t n, const std::vector< std::pair< const Input_ *, Number_ > > &inputs, Code_ *const codes) |
Combine categorical variables into a single factor.