Canopy  1.0
The header-only random forests library
Installation Guide

Table of Contents

Install Dependencies

Firstly you will need to ensure that you have the Canopy's dependencies installed, this includes:

Get Canopy

Once you have these dependencies installed, you can go ahead and install canopy by cloning the repository on github. E.g.

1 cd /path/where/you/want/canopy
2 git clone https://github.com/CPBridge/canopy.git

And that's it! Since canopy is a header-only library, you don't need to build anything.

Compiling User Code

In order to compile your own code using canopy, you need to make sure you are compiling with c++11 (or later), are using OpenMP, and list canopy's include directory in the include dependencies. E.g. to compile a programme in user_code.cpp with the g++ compiler:

1 g++ -std=c++11 -fopenmp -I /path/to/canopy/include user_code.cpp