Git Product home page Git Product logo

distrforest's Introduction

The distRforest package

This package contains an R implementation for random forests with distribution-based loss functions.

Overview

The distRforest package is based on the rpart package and extends its functionality. The rpart package implements classification trees, standard regression trees (with a squared error loss function), Poisson regression trees (with the Poisson deviance as a loss function) and exponential scaling for survival data. The following features are added in distRforest:

  1. Develop regression trees with the gamma and log-normal deviance as loss functions for long-tailed data.
  2. Build a random forest consisting of individual rpart trees in the ensemble.

This package is mainly intented for users who want to develop a random forest on count data (via the Poisson distribution) or on long-tailed data (via the gamma or log-normal distribution). A random forest implementation that supports those distributions is lacking from the R universe, but they play a vital role in certain sectors. An example is the insurance industry, where claim counts and amounts need to be modelled and predicted for several general insurance products. If the goal of the user is to develop a random forest on a classification, standard regression or survival problem, then there are more efficient, scalable and complete random forest implementations available in the R universe.

Installation

To install distRforest from GitHub you will need devtools:

install.packages('devtools')
devtools::install_github('henckr/distRforest')

Harmony between distRforest and rpart

Note that the basic function to create a decision tree is still called rpart(...) in the distRforest package. If you have both the rpart and distRforest packages loaded in your R session, it is best to explicitly call the function via distRforest::rpart(...) to make sure you can access the extra functionality.

Disclaimer

This is an extension of the rpart package, which is on CRAN, and has the original source code on GitHub. By no means is this meant to be a completely new R package or a replacement for rpart. This is merely an extension of the rpart package for specific use-cases. The original functionality stays valid and copyright belongs to the authors Terry Therneau, Beth Atkinson and Brian Ripley. All the changes and add-ons to the original source code are listed here.

distrforest's People

Contributors

henckr 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.