18#ifndef TESSERACT_TRAINING_LSTMTESTER_H_
19#define TESSERACT_TRAINING_LSTMTESTER_H_
40 bool LoadAllEvalData(
const char *filenames_file);
44 bool LoadAllEvalData(
const std::vector<std::string> &filenames);
57 std::string RunEvalAsync(
int iteration,
const double *training_errors,
62 std::string RunEvalSync(
int iteration,
const double *training_errors,
const TessdataManager &model_mgr,
72 bool LockIfNotRunning();
81 bool async_running_ =
false;
82 std::mutex running_mutex_;
84 int test_iteration_ = 0;
85 const double *test_training_errors_ =
nullptr;
87 int test_training_stage_ = 0;
88 std::string test_result_;