6 #ifndef TURI_DML_DATA_TESTING_UTILS_H_ 7 #define TURI_DML_DATA_TESTING_UTILS_H_ 9 #include <core/storage/sframe_data/sframe.hpp> 10 #include <ml/ml_data/ml_data.hpp> 15 #include <unordered_set> 51 size_t n_rows, std::string column_types,
bool create_target_column =
false,
52 bool target_column_categorical =
false);
66 return (std::unordered_set<flexible_type>(
69 std::unordered_set<flexible_type>(
76 }
else if(v1.
size() == 0) {
77 for(
size_t i = 0; i < v2.
size(); ++i) {
78 if(v2[i] != 0)
return false;
81 }
else if(v2.
size() == 0) {
82 for(
size_t i = 0; i < v1.
size(); ++i) {
83 if(v1[i] != 0)
return false;
102 std::ostream& operator<<(std::ostream& os, const std::vector<turi::ml_data_entry>& v);
std::pair< sframe, ml_data > make_random_sframe_and_ml_data(size_t n_rows, std::string column_types, bool create_target_column=false, bool target_column_categorical=false)
flex_type_enum get_type() const
static bool ml_testing_equals(const flexible_type &v1, const flexible_type &v2)
std::vector< flexible_type > flex_list