OmniSciDB
72c90bc290
|
A struct that creates a bytemap to map each key to its corresponding one-hot column index. More...
Public Member Functions | |
KeyToOneHotColBytemap (const std::vector< int32_t > &top_k_keys, const int32_t min_key, const int32_t max_key, const bool has_other_key) | |
int16_t | get_col_idx_for_key (const int32_t key) const |
Static Public Member Functions | |
static std::vector< int16_t > | init_bytemap (const std::vector< int32_t > &top_k_keys, const int32_t min_key, const int32_t max_key, const bool has_other_key) |
Public Attributes | |
const int32_t | min_key_ |
const int32_t | max_key_ |
const bool | has_other_key_ |
const int32_t | other_key_ |
const std::vector< int16_t > | bytemap_ |
A struct that creates a bytemap to map each key to its corresponding one-hot column index.
Definition at line 189 of file OneHotEncoder.cpp.
|
inline |
Definition at line 190 of file OneHotEncoder.cpp.
|
inline |
Definition at line 223 of file OneHotEncoder.cpp.
References bytemap_, has_other_key_, TableFunctions_Namespace::OneHotEncoder_Namespace::INVALID_COL_IDX, max_key_, min_key_, and other_key_.
Referenced by TableFunctions_Namespace::OneHotEncoder_Namespace::one_hot_encode().
|
inlinestatic |
Definition at line 200 of file OneHotEncoder.cpp.
References TableFunctions_Namespace::OneHotEncoder_Namespace::INVALID_COL_IDX.
const std::vector<int16_t> TableFunctions_Namespace::OneHotEncoder_Namespace::KeyToOneHotColBytemap::bytemap_ |
Definition at line 234 of file OneHotEncoder.cpp.
Referenced by get_col_idx_for_key().
const bool TableFunctions_Namespace::OneHotEncoder_Namespace::KeyToOneHotColBytemap::has_other_key_ |
Definition at line 232 of file OneHotEncoder.cpp.
Referenced by get_col_idx_for_key().
const int32_t TableFunctions_Namespace::OneHotEncoder_Namespace::KeyToOneHotColBytemap::max_key_ |
Definition at line 231 of file OneHotEncoder.cpp.
Referenced by get_col_idx_for_key().
const int32_t TableFunctions_Namespace::OneHotEncoder_Namespace::KeyToOneHotColBytemap::min_key_ |
Definition at line 230 of file OneHotEncoder.cpp.
Referenced by get_col_idx_for_key().
const int32_t TableFunctions_Namespace::OneHotEncoder_Namespace::KeyToOneHotColBytemap::other_key_ |
Definition at line 233 of file OneHotEncoder.cpp.
Referenced by get_col_idx_for_key().