Skip to content

daing1899/random_forest_run

 
 

Repository files navigation

RFR

Build Status Coverage Status

A extensible C++ library for random forests with Python bindings.

Requirements

For the C++ library itself, you need no additional libaries, only a C++11 capable compiler. Technically, you need Boost if you want to compile the unit tests. The development is done using GCC 5.4 and 6.2. You probably have to set CMAKE_CXX_FLAGS to -std=c++11 when using older compilers.

CMAKE
DOXYGEN (if you want docstrings, which you probably do)
SWIG > 3.0

Installing the Python Bindings

Checkout the repo (and the refactor branch), create a build directory, and build them using the following commands:

git checkout [email protected]:sfalkner/random_forest_run.git
cd random_forest_run
mkdir build
cd build
cmake ..
make
python setup.py install --user

After the installation finishes (hopefully) sucessfully, you can use the library with the pyrfr module.

The above commands work for Python 3.4 and 3.6 on Gentoo and ArchLinux. With Python 2.7, there have been problems reported. Contact me if you experience any irregularities.

USAGE

For now, the file ./tests/pyrfr_example.py inside the repository serves as the only real documentation of the Python bindings besides the docstrings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.7%
  • Python 6.4%
  • Other 0.9%