6 #ifndef TURI_DML_DATA_COLUMN_MODES_H_ 7 #define TURI_DML_DATA_COLUMN_MODES_H_ 11 #include <core/data/flexible_type/flexible_type.hpp> 36 CATEGORICAL_VECTOR = 3,
39 CATEGORICAL_SORTED = 6,
40 NUMERIC_ND_VECTOR = 7};
50 case ml_column_mode::NUMERIC:
return false;
51 case ml_column_mode::CATEGORICAL:
return true;
52 case ml_column_mode::NUMERIC_VECTOR:
return false;
53 case ml_column_mode::CATEGORICAL_VECTOR:
return true;
54 case ml_column_mode::DICTIONARY:
return false;
55 case ml_column_mode::UNTRANSLATED:
return false;
56 case ml_column_mode::CATEGORICAL_SORTED:
return true;
57 case ml_column_mode::NUMERIC_ND_VECTOR:
return false;
69 case ml_column_mode::NUMERIC:
return true;
70 case ml_column_mode::CATEGORICAL:
return true;
71 case ml_column_mode::NUMERIC_VECTOR:
return true;
72 case ml_column_mode::CATEGORICAL_VECTOR:
return false;
73 case ml_column_mode::DICTIONARY:
return false;
74 case ml_column_mode::UNTRANSLATED:
return true;
75 case ml_column_mode::CATEGORICAL_SORTED:
return true;
76 case ml_column_mode::NUMERIC_ND_VECTOR:
return true;
90 case ml_column_mode::NUMERIC:
return false;
91 case ml_column_mode::CATEGORICAL:
return true;
92 case ml_column_mode::NUMERIC_VECTOR:
return false;
93 case ml_column_mode::CATEGORICAL_VECTOR:
return true;
94 case ml_column_mode::DICTIONARY:
return true;
95 case ml_column_mode::UNTRANSLATED:
return false;
96 case ml_column_mode::CATEGORICAL_SORTED:
return true;
97 case ml_column_mode::NUMERIC_ND_VECTOR:
return false;
109 namespace ml_data_internal {
116 void check_type_consistent_with_mode(
const std::string& column_name,
130 const std::string& column_name,
132 const std::map<std::string, ml_column_mode>& mode_overrides);
static GL_HOT_INLINE_FLATTEN bool mode_has_fixed_size(ml_column_mode mode)
static GL_HOT_INLINE_FLATTEN bool mode_is_categorical(ml_column_mode mode)
#define GL_HOT_INLINE_FLATTEN
#define ASSERT_TRUE(cond)
const char * column_mode_enum_to_name(ml_column_mode mode)
static GL_HOT_INLINE_FLATTEN bool mode_is_indexed(ml_column_mode mode)