6 #ifndef TURI_UNITY_SIMPLE_MODEL_HPP 7 #define TURI_UNITY_SIMPLE_MODEL_HPP 9 #include <model_server/lib/variant.hpp> 10 #include <model_server/lib/extensions/model_base.hpp> 23 static constexpr
size_t SIMPLE_MODEL_VERSION = 0;
75 #endif // TURI_UNITY_SIMPLE_MODEL #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.
std::vector< std::string > list_fields()
Lists all the keys stored in the variant map.
variant_map_type params
Internal map.
boost::make_recursive_variant< flexible_type, std::shared_ptr< unity_sgraph_base >, dataframe_t, std::shared_ptr< model_base >, std::shared_ptr< unity_sframe_base >, std::shared_ptr< unity_sarray_base >, std::map< std::string, boost::recursive_variant_ >, std::vector< boost::recursive_variant_ >, boost::recursive_wrapper< function_closure_info > >::type variant_type
#define END_CLASS_MEMBER_REGISTRATION
simple_model()
Default constructor.
~simple_model()
Destructor.
size_t get_version() const override
simple_model(const variant_map_type ¶ms)
#define REGISTER_NAMED_CLASS_MEMBER_FUNCTION(name, function,...)
void save_impl(oarchive &oarc) const override
void load_version(iarchive &iarc, size_t version) override
variant_type get_value(std::string key, variant_map_type &opts)
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.