resubEdge
Classification edge by resubstitution
Syntax
Description
Examples
Estimate Quality of Classification Tree
Estimate the quality of a classification tree for the Fisher iris data by resubstitution.
load fisheriris
tree = fitctree(meas,species);
redge = resubEdge(tree)
redge = 0.9384
Input Arguments
tree
— Classification tree
ClassificationTree
object
Classification tree, specified as a ClassificationTree
object.
Use the fitctree
function to create a classification
tree object.
Output Arguments
edge
— Classification edge
scalar
Classification edge obtained by re-substituting the training data into the calculation of edge, returned as a scalar.
More About
Edge
The edge is the weighted mean value of the classification margin.
The weights are the class probabilities in
tree
.Prior
.
Margin
The classification margin is the difference between the
classification score for the true class and maximal classification
score for the false classes. Margin is a column vector with the same number of rows as in
the matrix X
.
Score (tree)
For trees, the score of a classification of a leaf node is the posterior probability of the classification at that node. The posterior probability of the classification at a node is the number of training sequences that lead to that node with the classification, divided by the number of training sequences that lead to that node.
For an example, see Posterior Probability Definition for Classification Tree.
Extended Capabilities
GPU Arrays
Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Version History
Introduced in R2011a
See Also
edge
| resubMargin
| resubLoss
| resubPredict
| fitctree
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)