27 if (metadata ==
"" || metadata ==
"DEFAULT") {
40 const std::vector<std::vector<std::string>>& cat_feature_keys)
64 int64_t num_one_hot_features{0};
66 num_one_hot_features +=
static_cast<int64_t
>(cat_feature_key.size());
68 return num_one_hot_features;
virtual MLModelType getModelType() const =0
std::string default_metadata(const std::string &metadata)
MLModelMetadata getModelMetadata() const
std::vector< std::vector< std::string > > cat_feature_keys_
const int64_t getNumCatFeatures() const
virtual ~AbstractMLModel()=default
std::string model_metadata_
virtual int64_t getNumFeatures() const =0
const std::string & getModelMetadataStr() const
const int64_t getNumLogicalFeatures() const
const int64_t getNumOneHotFeatures() const
const std::vector< std::vector< std::string > > & getCatFeatureKeys() const
std::string decode_base64(const std::string &val, bool trim_nulls)
AbstractMLModel(const std::string &model_metadata, const std::vector< std::vector< std::string >> &cat_feature_keys)
AbstractMLModel(const std::string &model_metadata)
virtual std::string getModelTypeString() const =0