Coder Social home page Coder Social logo

neural_ensemble_trees's Introduction

Neural Ensemble Trees

This repository is improved from neural random forest. Thanks the original author a lot!

Relevant paper:

Neural Random Forests.

Based on it, we add LightGBM model in the framework and impove the performance a lot.

Requirements

This code is based on python3 and uses tensorflow 1.3.0.

First, let's make sure you have all packages needed:

pip3 install -r requirements.txt

Notice that the newest version (installed from github source code) of LightGBM is needed and can't installed by pip temporarily!

Quick Start

For a quick start, let's download the mpg dataset from the UCI Machine Learning Repository (30KB):

cd datasets/data/mpg_data
sh download.sh

To run different Neural Random Forest models on the mpg dataset, execute this (takes ~2min) from the repository root directory:

python3 main.py mpg <randomforest or lightgbm>

Other Datasets

To run the model on a new dataset, you must write a data loader function and add an option to data_loader.py. For inspiration, check out the data loaders in preprocessing/ which are for other datasets used in the paper .

The data loader functions all return a pair (X, Y), where X is an input matrix of size [# samples, # features], and Y is a vector of regression outputs with size [# samples].

neural_ensemble_trees's People

Contributors

motefly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.