-
Notifications
You must be signed in to change notification settings - Fork 2
/
ModelSelection.h
27 lines (22 loc) · 879 Bytes
/
ModelSelection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Created by zebang.zhzb on 2018/7/14.
//
#ifndef MTREE_MODELSELECTION_H
#define MTREE_MODELSELECTION_H
#include "Dataset.h"
#include "utils.h"
#include "Booster.h"
#include "LinearLoss.h"
#include "MultiTaskUpdater.h"
template<typename PARAM_TYPE>
class ModelSelection {
public:
/*! \belief: select the best model. */
Booster<LogisticLoss, MultiTaskUpdater> get_best_booster(Dataset &dataset,
const vector<PARAM_TYPE> ¶ms,
const string ¶m_name,
const int &max_num_round,
const int &common_num_round,
const float &beta) const;
};
#endif //MTREE_MODELSELECTION_H