6 #ifndef TURI_TESTING_DATA_GENERATORS_H_ 7 #define TURI_TESTING_DATA_GENERATORS_H_ 9 #include <core/storage/sframe_data/sframe.hpp> 14 namespace turi {
namespace recsys {
47 const std::vector<std::string>& column_names,
48 const std::vector<size_t>& n_categorical_values,
49 const std::map<std::string, flexible_type>& base_options);
55 const std::string& target_column_name,
57 double noise_sd)
const;
65 size_t n_train_samples_per_user,
66 size_t n_test_samples_per_user,
68 double noise_sd)
const;
72 double evaluate(
const std::vector<flexible_type>& x,
double noise_sd)
const;
78 std::vector<std::string> column_names;
79 std::vector<size_t> n_categorical_values;
81 size_t n_factors, dim;
84 std::map<std::string, flexible_type> _options;
sframe generate(size_t n_observations, const std::string &target_column_name, size_t random_seed, double noise_sd) const
std::pair< sframe, sframe > generate_for_ranking(size_t n_train_samples_per_user, size_t n_test_samples_per_user, size_t random_seed, double noise_sd) const