Skip to content

Commit

Permalink
Merge pull request #5 from zfb132/main
Browse files Browse the repository at this point in the history
fix bug for GBT
  • Loading branch information
pierotofy authored Mar 21, 2023
2 parents 97d016e + 11eb7c7 commit 9291331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM ubuntu:22.04 as builder
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt install -y --fix-missing --no-install-recommends \
git \
build-essential \
software-properties-common \
cmake \
Expand Down
2 changes: 1 addition & 1 deletion pcclassify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int main(int argc, char **argv){

ClassifierType ctype = fingerprint(modelFile);
#ifndef WITH_GBT
if (ctype == GradientBoostedTrees) throw std::runtime_error(modelFile + " is a GBT model but GBT support has not been built (try building with -DWITH_GBT=ON)") << std::endl;
if (ctype == GradientBoostedTrees) throw std::runtime_error(modelFile + " is a GBT model but GBT support has not been built (try building with -DWITH_GBT=ON)");
#endif

std::cout << "Model: " << (ctype == RandomForest ? "Random Forest" : "Gradient Boosted Trees") << std::endl;
Expand Down

0 comments on commit 9291331

Please # to comment.