Skip to content

maunula/PowerBI-visuals-decision-tree

 
 

Repository files navigation

PowerBI-visuals-decision-tree

R powered custom visual based on rpart package

Decision tree chart screenshot

Overview

Decision trees are probably one of the most common and easily understood decision support tools.

The decision tree learning automatically find the important decision criteria to consider and uses the most intuitive and explicit visual representation.

Current visual implements the popular and widely used tools of recursive partitioning for decision tree construction. Each leaf of the tree is labeled with a class and a probability distribution over the classes. Beside this we use cross validation to estimate the statistical performance of the decision tree.

If the target variable is categorical or has only few possible values the "Classification Tree" is constructed, whereas if the target variable is numeric the result of the visual is "Regression Tree".

You can control the algorithm parameters and the visual attributes to suit your needs.

Here is how it works:

  • Define the "Target Variable" (exactly one) and "Input Variables" (two or more columns)
  • Controll the basic properties of the tree such as maximum depth and the minimum observation number per leaf
  • If you are the advanced user, control the recursive partitioning and cross-validation parameters

R package dependencies(auto-installed): rpart, rpart.plot, RColorBrewer

Supports R versions: R 3.3.1, R 3.3.0, MRO 3.3.1, MRO 3.3.0, MRO 3.2.2

See also Decision Tree Chart at Microsoft Office store

About

R powered custom visual based on rpart package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.2%
  • R 46.4%
  • CSS 1.4%