Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 458 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 458 Bytes

A python/cython random forest implementation

This repository contains python/cython code with a random forest implementation.

Installation:

python setup.py build_ext --inplace

To use VisualStudio on Windows, call

python setup.py build_ext -c msvc --inplace

Example usage in your python code:

rf = randomforest.RandomForestClassifier(n_estimators=100)
rf.fit(train_data, train_labels)
pred_labels = rf.predict(test_data)