6 #ifndef TURI_SAMPLE_TRANSFORMER_H_ 7 #define TURI_SAMPLE_TRANSFORMER_H_ 9 #include <model_server/lib/toolkit_class_macros.hpp> 10 #include <toolkits/feature_engineering/transformer_base.hpp> 11 #include <core/export.hpp> 15 namespace feature_engineering {
51 static constexpr
size_t SAMPLE_TRANSFORMER_VERSION = 0;
70 void init_options(
const std::map<std::string, flexible_type>&_options)
override;
75 size_t get_version()
const override;
91 void init_transformer(
const std::map<std::string,
115 inline double get_constant() {
return constant;}
#define BEGIN_CLASS_MEMBER_REGISTRATION(python_facing_classname)
#define REGISTER_CLASS_MEMBER_FUNCTION(function,...)
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
const std::map< std::string, flexible_type > & get_current_options() const
#define END_CLASS_MEMBER_REGISTRATION
const variant_type & get_value_from_state(std::string key)
std::vector< std::string > list_fields()
#define REGISTER_NAMED_CLASS_MEMBER_FUNCTION(name, function,...)
std::map< std::string, flexible_type > get_default_options() const
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 >())