6 #ifndef TURI_TRANSFORMER_BASE_H 7 #define TURI_TRANSFORMER_BASE_H 9 #include <core/data/sframe/gl_sframe.hpp> 10 #include <model_server/lib/extensions/ml_model.hpp> 11 #include <core/export.hpp> 15 namespace feature_engineering {
62 static constexpr
size_t TRANSFORMER_BASE_VERSION = 0;
71 virtual size_t get_version()
const = 0;
77 virtual void save_impl(
oarchive& oarc)
const = 0;
83 virtual void load_version(
iarchive& iarc,
size_t version) = 0;
93 virtual void init_options(
const std::map<std::string,
106 virtual void init_transformer(
const std::map<std::string,
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.
void transform(S &&input, T &&output, TransformFn transformfn, std::set< size_t > constraint_segments=std::set< size_t >())