d-tree

Decision tree library for D


Keywords
library, scientific, numeric, data_structures, decision-tree, gradient-boosting, mir, numir
License
BSL-1.0
Install
dub fetch d-tree --version 0.0.1

Documentation

Decision tree library for D

https://travis-ci.org/ShigekiKarita/d-tree.svg?branch=master https://codecov.io/gh/ShigekiKarita/d-tree/branch/master/graph/badge.svg

getting started

$ curl https://dlang.org/install.sh | bash -s # install dlang compiler
$ source ~/dlang/<your-compiler>/activate
$ cd example/plot_dtree_boundary
$ dub run
$ xdg-open *.png
  • single decision tree classification result

./example/plot_boundary/plot_dtree_gini.png

  • random forest classification result

./example/plot_boundary/plot_forest_gini.png

  • single decision tree regression result in `example/sin_regression`

./example/sin_regression/plot_tree.png

  • random forest regression result in `example/sin_regression`

./example/sin_regression/plot_forest.png

Roadmap

  • DONE Classification tree (2/6)
  • DONE Random forest (2/7)
  • DONE Regression tree (2/9)
  • TODO bootstrap sampling in RF
  • TODO Gradient boosting
  • TODO Parallel processing
  • TODO Serialization
  • TODO Support libsvm format

Reference