Skip to content

HoustonJ2013/LocalLinearForest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

df18f8a · Dec 23, 2019

History

11 Commits
Dec 23, 2019
Dec 23, 2019
Aug 11, 2019
Dec 23, 2019
Dec 23, 2019
Aug 12, 2019
Aug 12, 2019
Aug 12, 2019
Aug 12, 2019
Aug 11, 2019

Repository files navigation

An proof-of-concept implementation of local linear forest. The implementaion followed the paper by Rina F. et al.

Python 3.7, two packages were used: sklearn 0.19.2, and numpy 1.15.4. It is built on top of the basic tree structure implemented in sklearn, the efficiency is not optimized in this POC implementation.

The local linear forest shows some improvement on the "step function" in the ordinary random forest. See notebook

<Banana

To install, clone this repo to local disk and type

pip install -e .

The usage is the same as sklearn RandomForestRegressor

from LLF.LocalLinearForest import LocalLinearForest
llf_1 = LocalLinearForest(n_estimators=100, max_depth=5)
llf_1.fit(X, y)
llf_1.predict(X_test)

About

A python implementation of local linear forests (https://arxiv.org/pdf/1807.11408.pdf) based on sklearn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published