A forest that is fast. Works on OS X and linux so far.
Requires cmake
. To install and run a test:
conda install pybind11 # use conda not pip
cmake .
make fastforest
python test.py
NB: the makefile is created by cmake, so don't edit it. Instead, edit CMakeLists.txt and then rerun "cmake .
".
To use the mechanism for publishing to pypi:
conda install pybind11 # use conda not pip
python setup.py build_ext --inplace
python test.py
fastforest's People
Forkers
kartikmehta09 seongl harirajeev theafricanquant zeta1999 fagan2888 ashoknp-git rakhithjk isabella232fastforest's Issues
Compute feature importances
I think we will be able to get away with average drop in gini!
Document C++ impl and Python API
Proximity matrix
support observation weights
It would be nice to support weighted observations so people don't have to rebalance their data sets. Unlike scikit-learn's we could actually specify what those weights mean and the range. haha.
Keep-Alive-Actions
std::shuffle is in the standard library
If I remember correctly we have a shuffle function but there is one in the standard C++ library these days so we could avoid our own implementation that way. I just use this in my isolation forest so thought I would leave a note here.
TODO: OOB scores
Keep-Alive-Actions
allSame_() compare floats not just ints
int first = y[start]
should be a float then do appropriate float comparison.
add setup.py for pypi publishing
TODO: define python-facing API
For broader adoption, I think we should make a drop in replacement for scikit-learn's. I.e., hyper parameters go in the constructor, fit()
, predict()
, predict_proba()
.
The one place we might want to deviate is the oob_score_
and feature_importances_
. Probably should make these functions or at least get rid of the trailing underscore because these are public facing fields.
Keep-Alive-Actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.