torch-decisiontree

(โ˜… 130)

This project implements random forests and gradient boosted decision trees (GBDT). The latter uses gradient tree boosting. Both use ensemble learning to produce ensembles of decision trees (that is, forests).

  • _env.lua
  • benchmark.lua
  • CartNode.lua
  • CartTrainer.lua
  • CartTree.lua
  • CMakeLists.txt
  • DataSet.lua
  • DecisionForest.lua
  • DecisionForestTrainer.lua
  • DecisionTree.lua
  • DFD.lua
  • error.h
  • GBDT_common.h
  • GiniState.lua
  • GradientBoostState.lua
  • GradientBoostTrainer.lua
  • hash_map.c
  • hash_map.h
  • init.c
  • init.lua
  • internal_hash_map.h
  • khash.h
  • LICENSE
  • LogitBoostCriterion.lua
  • math.lua
  • MSECriterion.lua
  • RandomForestTrainer.lua
  • README.md
  • Sparse2Dense.lua
  • SparseTensor.lua
  • test.lua
  • TreeState.lua
  • utils.h
  • utils.lua
  • WorkPool.lua

# Installation Guide

1. Get the code
git clone https://github.com/twitter-archive/torch-decisiontree

Downloads the entire project code from GitHub to your computer.

cd torch-decisiontree

Moves into the project folder you just downloaded.

2. CMake

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ ์ปดํŒŒ์ผ๋Ÿฌ Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
mkdir build && cd build

Creates a folder to hold the build output and moves into it.

cmake ..

Analyzes the source code and generates build configuration files (must be run inside the build folder).

make

Compiles the code based on the generated build configuration to produce an executable.

โœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).
// repository documentation