This article shows what an algorithm of decision trees from Microsoft and how to use it.
Summary
[ hide ]
- 1 Features
- 2 Example
- 1 How the algorithm works
- 2 Predict discrete columns
- 3 Use the algorithm
- 4 See also
- 5 Source
characteristics
The Microsoft Decision Tree Algorithm is a classification and regression algorithm that Microsoft SQL Server 2005 Analysis Services (SSAS) provides for continuous and discrete attribute prediction modeling . For discrete attributes, the algorithm makes predictions based on the relationships between the input columns of a data set. It uses the values, or states, of these columns to predict the states of a column that is designated as a prediction item . Specifically, the algorithm identifies the input columns that are mapped to the prediction column. For example, in a scenario to predict which customers are likely to purchase a bicycleIf nine out of ten young customers buy a bike, but only two out of ten older customers do, the algorithm infers that age is a good predictor of bike buying. The decision tree makes predictions based on the trend toward a specific result. For continuous attributes, the algorithm uses linear regression to determine where a decision tree is divided. If more than one column is defined as a prediction element, or if the input data contains a nested table that has been established as a prediction element, the algorithm generates a separate decision tree for each prediction column.
Example
Adventure Works Cycle’s marketing department wants to identify characteristics of past customers that could indicate whether they are likely to make any purchases in the future. The AdventureWorks database stores demographic information that describes old customers. Using Microsoft’s decision tree algorithm that analyzes this information, the department can generate a model that predicts whether a certain customer is going to buy products, based on the status of the columns known about that customer, such as demographics or patterns of previous purchase.
How the algorithm works
Microsoft’s decision tree algorithm generates a data mining model by creating a series of divisions (called nodes) in the tree. The algorithm adds a node to the model each time an input column is significantly correlated with the prediction column. The way the algorithm determines a division varies depending on whether it predicts a continuous column or a discrete column.
Predict discrete columns
How the Microsoft Decision Tree algorithm generates a tree for a discrete prediction column can be displayed using a histogram . The following diagram shows a histogram that plots a prediction column, Bike Buyers, with an input column, Age. The histogram shows that a person’s age helps distinguish whether that person will buy a bicycle.
The mapping that appears in the diagram will cause the Microsoft Decision Tree algorithm to create a new node in the model.
As the algorithm adds new nodes to a model, a tree structure forms. The top node of the tree describes the breakdown of the prediction column for the global customer population. As the model grows, the algorithm considers all the columns.
Use the algorithm
A decision tree model must contain a key column, input columns, and a prediction column. The Microsoft Decision Tree algorithm supports the input column content types, prediction column content types, and specific modeling flags listed below.
- Input column content types: Continuous, Cyclical, Discrete, Discretized, Key, Table, and Ordered.
- Prediction column content types: Continuous, Cyclical, Discrete, Discretized, Table, and Ordered
- Modeling flags: MODEL_EXISTENCE_ONLY, NOT NULL and REGRESSOR
All Microsoft algorithms support a common set of functions. However, Microsoft’s decision tree algorithm supports the additional functions below.
- IsDescendant
- IsInNode
- PredictAdjustedProbability
- PredictAssociation
- PredictHistogram
- PredictNodeId
- PredictProbability
- PredictStdev
- PredictSupport
- PredictVariance
Microsoft’s decision tree algorithm supports the use of Prediction Model Markup Language (PMML) to create data mining models . Microsoft’s decision tree algorithm supports several parameters that affect the performance and precision of the resulting data mining model. Each parameter is described below.
- MAXIMUM_INPUT_ATTRIBUTES: Defines the number of input attributes that the algorithm can control before invoking the feature selection. Set this value to 0 to disable feature selection. The default value is 255.
- MAXIMUM_OUTPUT_ATTRIBUTES: Defines the number of output attributes that the algorithm can control before invoking the feature selection. Set this value to 0 to disable feature selection. The default value is 255.
- SCORE_METHOD: Determines the method used to calculate the result of the division. Available options: Entropy (1), Bayesian with priority K2 (2) or Bayesian Dirichlet Equivalent (BDE) with priority (3). The default value is 3.
- SPLIT_METHOD: Determine the method used to divide the node. Available options: binary (1), full (2), or both (3). The default value is 3.
- MINIMUM_SUPPORT: Determines the minimum number of sheet scenarios required to generate a division in the decision tree. The default value is 10.
- COMPLEXITY_PENALTY: Controls the growth of the decision tree. A low value increases the number of divisions and a high value reduces it. The default value is based on the number of attributes for a particular model, as described in the following list: From 1 to 9 attributes, the default value is 0.5. From 10 to 99 attributes, the default value is 0.9. For 100 or more attributes, the default value is 0.99.
- FORCED_REGRESSOR: Forces the algorithm to use the indicated columns as regressors, regardless of their importance according to the algorithm’s calculations. This parameter is only used for decision trees that predict a continuous attribute.
