247 {
248#ifdef DISABLED_LEGACY_ENGINE
249
250 GTEST_SKIP();
251#else
252
253 LoadMasterTrainer();
254
255
256 if (shape_table_->FindShape(0, -1) < 0) {
257 shape_table_->AddShape(0, 0);
258 }
259
260 auto shape_classifier = std::make_unique<MockClassifier>(shape_table_);
261
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]));
272 }
273
274
275 int num_samples = master_trainer_->GetSamples()->num_raw_samples();
282
286#endif
287}
const std::vector< std::string > split(const std::string &s, char c)