|
factorize
Create factors from categorical variables
|
Create a factor from a categorical variable. More...
#include <unordered_map>#include <vector>#include <algorithm>#include <cstddef>#include "sanisizer/sanisizer.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< Input_ > | factorize::create_factor (const std::size_t n, const Input_ *const input, Code_ *const codes) |
Create a factor from a categorical variable.