6 #ifndef TURI_ML2_DATA_COLUMN_MODES_H_ 7 #define TURI_ML2_DATA_COLUMN_MODES_H_ 11 #include <core/data/flexible_type/flexible_type.hpp> 38 case ml_column_mode::NUMERIC:
return false;
39 case ml_column_mode::CATEGORICAL:
return true;
40 case ml_column_mode::NUMERIC_VECTOR:
return false;
41 case ml_column_mode::CATEGORICAL_VECTOR:
return true;
42 case ml_column_mode::DICTIONARY:
return false;
43 case ml_column_mode::UNTRANSLATED:
return false;
55 case ml_column_mode::NUMERIC:
return true;
56 case ml_column_mode::CATEGORICAL:
return true;
57 case ml_column_mode::NUMERIC_VECTOR:
return true;
58 case ml_column_mode::CATEGORICAL_VECTOR:
return false;
59 case ml_column_mode::DICTIONARY:
return false;
60 case ml_column_mode::UNTRANSLATED:
return true;
74 case ml_column_mode::NUMERIC:
return false;
75 case ml_column_mode::CATEGORICAL:
return true;
76 case ml_column_mode::NUMERIC_VECTOR:
return false;
77 case ml_column_mode::CATEGORICAL_VECTOR:
return true;
78 case ml_column_mode::DICTIONARY:
return true;
79 case ml_column_mode::UNTRANSLATED:
return false;
91 namespace ml_data_internal {
98 void check_type_consistent_with_mode(
const std::string& column_name,
112 const std::string& column_name,
114 const std::map<std::string, flexible_type>& options,
115 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)