cpp : disambiguated auto keyword
This commit is contained in:
@ -159,17 +159,17 @@ void testing_and_evaluating(const np::Array<int32_t>& X_train_feat, const np::Ar
|
||||
const np::Array<float64_t> alphas = load<float64_t>(alphas_title);
|
||||
const np::Array<float64_t> final_classifiers = load<float64_t>(final_classifiers_title);
|
||||
|
||||
auto start = time();
|
||||
std::chrono::system_clock::time_point start = perf_counter_ns();
|
||||
const np::Array<uint8_t> y_pred_train = classify_viola_jones(alphas, final_classifiers, X_train_feat);
|
||||
const long long t_pred_train = duration_ns(time() - start);
|
||||
const long long t_pred_train = duration_ns(perf_counter_ns() - start);
|
||||
const float64_t e_acc = accuracy_score(y_train, y_pred_train);
|
||||
const float64_t e_f1 = f1_score(y_train, y_pred_train);
|
||||
float64_t e_FN, e_FP;
|
||||
std::tie(std::ignore, e_FN, e_FP, std::ignore) = confusion_matrix(y_train, y_pred_train);
|
||||
|
||||
start = time();
|
||||
start = perf_counter_ns();
|
||||
const np::Array<uint8_t> y_pred_test = classify_viola_jones(alphas, final_classifiers, X_test_feat);
|
||||
const long long t_pred_test = duration_ns(time() - start);
|
||||
const long long t_pred_test = duration_ns(perf_counter_ns() - start);
|
||||
const float64_t t_acc = accuracy_score(y_test, y_pred_test);
|
||||
const float64_t t_f1 = f1_score(y_test, y_pred_test);
|
||||
float64_t t_FN, t_FP;
|
||||
|
Reference in New Issue
Block a user