如何在dlib中序列化random_forest?

时间:2019-01-23 01:52:31

标签: serialization dlib

代码:

  random_forest_regression_trainer<dense_feature_extractor> trainer;
  random_forest_regression_function<dense_feature_extractor> model = trainer.train(data, labels);
  dlib::serialize(model, output);

但我只能找到

  serialize(const dense_feature_extractor& item, std::ostream& out)
  serialize(const random_forest_regression_function& item, std::ostream& out)

那么如何序列化random_forest_regression_function<dense_feature_extractor>

0 个答案:

没有答案