6 #ifndef TURI_OPTION_HANDLING_OPTION_INFO_H_ 7 #define TURI_OPTION_HANDLING_OPTION_INFO_H_ 11 #include <core/data/flexible_type/flexible_type.hpp> 13 namespace turi {
namespace option_handling {
37 enum {REAL, INTEGER, BOOL, CATEGORICAL, STRING, FLEXIBLE_TYPE}
parameter_type;
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
void check_value(const flexible_type &value) const
flexible_type to_dictionary() const
Export to dictionary.
flexible_type lower_bound
If real, these specify the allowed range of the model.
std::string name
The name of the parameter.
enum turi::option_handling::option_info::@9 parameter_type
void load(turi::iarchive &iarc)
Serialization – load.
flexible_type interpret_value(const flexible_type &value) const
void save(turi::oarchive &oarc) const
Serialization – save.
flexible_type default_value
The default value.
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.
std::vector< flexible_type > allowed_values
If categorical, this specifies the allowed values.
std::string description
A short description of the parameter.