gbdt_model_proto.cpp 578 Bytes
Newer Older
wxchan's avatar
wxchan committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "../../boosting/gbdt.h"

namespace LightGBM {

void GBDT::SaveModelToProto(int, const char*) const {
    Log::Fatal("Please cmake with -DUSE_PROTO=ON to use protobuf.");
}

bool GBDT::LoadModelFromProto(const char*) {
    Log::Fatal("Please cmake with -DUSE_PROTO=ON to use protobuf.");
    return false;
}

void Tree::ToProto(LightGBM::Model_Tree&) const {
    Log::Fatal("Please cmake with -DUSE_PROTO=ON to use protobuf.");
}

Tree::Tree(const LightGBM::Model_Tree&) {
    Log::Fatal("Please cmake with -DUSE_PROTO=ON to use protobuf.");
}

}  // namespace LightGBM