248 #ifdef DISABLED_LEGACY_ENGINE
256 if (shape_table_->FindShape(0, -1) < 0) {
257 shape_table_->AddShape(0, 0);
260 auto shape_classifier = std::make_unique<MockClassifier>(shape_table_);
262 std::string accuracy_report;
264 shape_classifier.get(), &accuracy_report);
265 LOG(
INFO) << accuracy_report.c_str();
266 std::string result_string = accuracy_report.c_str();
267 std::vector<std::string> results =
split(result_string,
'\t');
271 EXPECT_TRUE(safe_strto32(results[i + 1], &result_values[i]));
275 int num_samples = master_trainer_->GetSamples()->num_raw_samples();
const std::vector< std::string > split(const std::string &s, char c)