
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Yi Zhang [email protected] Samuel Burer [email protected] W. Nick Street [email protected] Department of Management Sciences University of Iowa Iowa City, IA 52242-1944, USA
Editor: Kristin Bennett, Emilio Parrado-Hernandez
An ensemble is a group of learning models that jointly solve a problem. However, the ensembles generated by existing techniques are sometimes unnecessarily large, which can lead to extra memory usage, computational costs, and occasional decreases in effectiveness. The purpose of ensemble pruning is to search for a good subset of ensemble members that performs as well as, or better than, the original ensemble. This subset selection problem is a combinatorial optimization problem and thus finding the exact optimal solution is computationally prohibitive. Various heuristic methods have been developed to obtain an approximate solution. However, most of the existing heuristics use simple greedy search as the optimization method, which lacks either theoretical or empirical quality guarantees. In this paper, the ensemble subset selection problem is formulated as a quadratic integer programming problem. By applying semi-definite programming (SDP) as a solution tech- nique, we are able to get better approximate solutions. Computational experiments show that this SDP-based pruning algorithm outperforms other heuristics in the literature. Its application in a classifier-sharing study also demonstrates the effectiveness of the method. Keywords: ensemble pruning, semi-definite programming, heuristics, knowledge sharing
Ensemble methods are gaining more and more attention in the machine-learning and data- mining communities. By definition, an ensemble is a group of learning models whose pre- dictions are aggregated to give the final prediction. It is widely accepted that an ensemble is usually better than a single classifier given the same amount of training information. A number of effective ensemble generation algorithms have been invented during the past decade, such as bagging (Breiman, 1996), boosting (Freund and Schapire, 1996), arcing (Breiman, 1998) and random forest (Breiman, 2001). The effectiveness of the ensemble methods relies on creating a collection of diverse, yet accurate learning models. Two costs associated with ensemble methods are that they require much more memory to store all the learning models, and it takes much more computation time to get a prediction for an unlabeled data point. Although these extra costs may seem to be negligible with a small research data set, they may become serious when the ensemble method is applied to a large scale real-world data set. In fact, a large scale implementation of ensemble learning can easily generate an ensemble with thousands of learning models (Street and Kim, 2001;
Chawla et al., 2004). For example, ensemble-based distributed data-mining techniques enable large companies (like WalMart) that store data at hundreds of different locations to build learning models locally and then combine all the models for future prediction and knowledge discovery. The storage and computation time will become non-trivial under such circumstances. In addition, it is not always true that the larger the size of an ensemble, the better it is. For example, the boosting algorithm focuses on those training samples that are misclassified by the previous classifier in each round of training and finally squeezes the training error to zero. If there is a certain amount of noise in the training data, the boosting ensemble will overfit (Opitz and Maclin, 1999; Dietterich, 2000). In such cases, it will be better to reduce the complexity of the learning model in order to correct the overfitting, like pruning a decision tree. For a boosting ensemble, selecting a subset of classifiers may improve the generalization performance. Ensemble methods have also been applied to mine streaming data (Street and Kim, 2001; Wang et al., 2003). The ensemble classifiers are trained from sequential chunks of the data stream. In a time-evolving environment, any change in the underlying data-generating pattern may make some of the old classifiers obsolete. It is better to have a screening process that only keeps classifiers that match the current form of the drifting concept. A similar situation occurs when classifiers are shared among slightly different problem domains. For example, in a peer-to-peer spam email filtering system, each email user can introduce spam filters from other users and construct an ensemble-filter. However, because of the difference of interest among email users, sharing filters indiscriminately is not a good solution. The sharing system should be able to pick filters that fit the individuality of each user. All of the above reasons motivate the appearance of various ensemble pruning algo- rithms. A straightforward pruning method is to rank the classifiers according to their individual performance on a held-out test set and pick the best ones (Caruana et al., 2004). This simple approach may sometimes work well but is theoretically unsound. For example, an ensemble of three identical classifiers with 95% accuracy is worse than an ensemble of three classifiers with 67% accuracy and least pairwise correlated error (which is perfect!). Margineantu and Dietterich (1997) proposed four approaches to prune ensembles generated by Adaboost. KL-divergence pruning and Kappa pruning aim at maximizing the pairwise difference between the selected ensemble members. Kappa-error convex hull pruning is a diagram-based heuristic targeting a good accuracy-divergence trade-off among the selected subset. Back-fitting pruning is essentially enumerating all the possible subsets, which is computationally too costly for large ensembles. Prodromidis et al. invented several pruning algorithms for their distributed data mining system (Prodromidis and Chan, 2000; Chan et al., 1999). One of the two algorithms they implemented is based on a diversity measure they defined, and the other is based on class specialty metrics. The major problem with the above algorithms is that when it comes to optimizing some criteria of the selected sub- set, they all resort to greedy search, which is on the lower end of optimization techniques and usually without either theoretical or empirical quality guarantees. Kim et al. used an evolutionary algorithm for ensemble pruning and it turned out to be effective (Kim et al., 2002). A similar approach can also be found in (Zhou et al., 2001). Unlike previous heuristic approaches, we formulate the ensemble pruning problem as a quadratic integer programming problem to look for a subset of classifiers that has the opti-
showed that the generalization error of an ensemble is loosely bounded by (^) s¯ρ 2 , where ¯ρ is the average correlation between classifiers and s is the overall strength of the classifiers. For continuous prediction problems, there are even closed-form representations for the ensemble generalization performance based on individual error and diversity. Krogh and Vedelsby (Krogh and Vedelsby, 1995) showed that for a neural network ensemble, the generalization error E = E¯ − A,¯
where E¯ is the weighted average of the error of the individual networks and A¯ is the variance among the networks. Zhou et al. (2001) give another form,
E =
i,j
Cij ,
where
Cij =
p(x)
fi(x) − d(x)
fj (x) − d(x)
dx,
p(x) is the density of input x, fi(x) is the output of the ith network and d(x) is the true output. Note that Cii is the error of the ith network and Cij, i 6 =j is a pairwise correlation-like measurement. The problem is that the more accurate the classifiers are, the less different they become. Therefore, there must be a trade-off between the strength and the divergence of an ensem- ble. What we are looking for is a subset of classifiers with the best trade-off so that the generalization performance can be optimized. In order to get the mathematical formulation of the ensemble pruning problem, we need to represent the error structure of the existing ensemble in a nice way. Unlike the case of continuous prediction, there is no exact closed-form representation for the ensemble error in terms of strength and diversity for a discrete classification problem. However, we are still able to obtain some approximate metrics following the same idea. From the error analysis of continuous problems, we notice that the ensemble error can be represented by a linear combination of the individual accuracy terms and pairwise diversity terms. Therefore, if we are able to find strength and diversity measurements for a classification ensemble, a linear combination of them should serve as a good approximation of the overall ensemble error. Minimizing this approximate ensemble error function will be the objective of the mathematical programming formulation. First, we record the misclassifications of each classifier on the training set in the error matrix P as follows:
Pij = 0, if jth classifier is correct on data point i, Pij = 1, otherwise.
Let G = P T^ P. Thus, the diagonal term Gii is the total number of errors made by classifier i and the off-diagonal term Gij is the number of common errors of classifier pair i and j. To put all the elements of the G matrix on the same scale, we normalize them by
G˜ii = Gii N
G^ ˜ij, i 6 =j =^1 2
Gij Gii
Gij Gjj
where N is the number of training points. After normalization, all elements of the G˜ matrix are between 0 and 1. G˜ii is the error rate of classifier i and G˜ij measures the overlap of
errors between classifier pair i and j. Note that G Gijii is the conditional probability that
classifier j misclassifies a point, given that classifier i does. Taking the average of G Gijii and Gij Gjj as the off-diagonal elements of^ G˜ makes the matrix symmetric. The constructed G˜ matrix captures both the strength (diagonal elements) and the pairwise divergence (off- diagonal elements) of the ensemble classifiers. It is self-evident that for a good ensemble, all elements of the G˜ matrix should be small. Intuitively,
i G˜ii^ measures the overall strength of the ensemble classifiers and
ij, i 6 =j G˜ij^ measures the diversity. A combination of these two terms,
ij G˜ij^ should be a good approximation of the ensemble error. The diversity term defined here is ad hoc. We have noticed that there exist many other heuristic pairwise measurements for ensemble diversity. For instance, the disagreement measure (Ho, 1998), κ statistic (Fleiss, 1981), Yule’s Q statistic (Yule, 1900), and so on. However, we found that the choice of the diversity measurement did not make a significant difference in terms of performance according to our computational experiments. Therefore, we stick to our definition because of its simplicity and intuitive appeal. Now we can formulate the subset selection problem as a quadratic integer programming problem. Essentially, we are looking for a fixed-size subset of classifiers, with the sum of the corresponding elements in the G˜ matrix minimized. The mathematical programming formulation is as follows,
min x xT^ Gx˜
s.t.
i
xi = k,
xi ∈ { 0 , 1 }.
The binary variable xi represents whether the ith classifier will be chosen. If xi = 1, which means that the ith classifier is included in the selected set, its corresponding diagonal and off-diagonal elements will be counted in the objective function. Note that the cardinality constraint
i xi^ =^ k^ is mathematically important because without it, there is only one trivial solution to the problem with none of the classifiers picked. In addition, it gives us control over the size of the selected subset. This quadratic integer programming problem is a standard 0-1 optimization problem, which is NP-hard in general. Fortunately, we found that this formulation is close to that of the so-called “max cut with size k” problem (written MC-k), in which one partitions the vertices of an edge-weighted graph into two sets, one of which has size k, so that the total weight of edges crossing the partition is maximized. The MC-k problem can be formulated as
max y
i Thus the objective function is equivalent to vT^ Hv (dropping the coefficient). We use the same trick to construct a matrix D
D(n+1)×(n+1) =
n eT e I
so that the cardinality constraint becomes vT^ Dv = 4k. After this whole transformation, the problem formulation becomes
min v vT^ Hv
s.t. vT^ Dv = 4k, v 0 = 1, vi ∈ {− 1 , 1 }, ∀i 6 = 0,
with which we will show later that the SDP relaxation applicable to the MC-k formula- tion (5) (Goemans and Williamson, 1995; Han et al., 2002) may also be applied here. It is important to keep in mind that the equivalence of our pruning problem and MC- k, established through the transformations (4–5) and (6–12), is an equivalence between optimal solution sets, not optimal values. Said differently, the optimal solutions of our problem are in one-to-one correspondence with the optimal solutions of MC-k via the given transformations, but the optimal values of the two problems are not equal. In particular, even though we can interpret (12) as an instance of MC-k with nonnegative weights on the complete graph, the objective function of (12) does not measure the total weight of cut edges. Instead, it more closely measures the total weight of un-cut edges (which is consistent with minimization) and, further, differs by a scaling as well as the inclusion of a constant term, which is based on the diagonal entries of H. These differences in the objective functions are byproducts of the transformations employed. Given that our problem is equivalent to MC-k (in terms of optimal solutions), it is worthwhile to ask what is known about MC-k. Based on the seminal work of Goemans and Williamson (1995) for the maximum cut problem with no size restriction, the papers of Feige and Langberg (2001) and Han, Ye, and Zhang (2002) demonstrate an approximation algorithm for instances of MC-k with nonnegative edge weights. The approximation algo- rithm is based on solving a SDP relaxation of MC-k and applying a simple-to-implement randomization scheme. Because the objective function of our problem does not precisely match the objective of MC-k (even though the two problems are equivalent through optimal solutions), the ap- proximation guarantee for MC-k—which is with respect to its objective function—does not necessarily transform into a guarantee for our problem. In fact, it seems extremely difficult to derive directly any approximation guarantees for our problem. SDP-based approximation approaches have proven most successful for problems in maximization form due to technical details concerning how an SDP relaxes a binary quadratic program, and unfortunately, our problem is in minimization form. Nevertheless, we feel that the strong connection of our problem with MC-k justifies the following heuristic procedure: (i) transform an instance of our problem into an instance of MC-k; (ii) use the SDP-based approximation algorithm to obtain a good solution of the
MC-k instance; and (iii) transform back to a solution of our problem. Further, it is not difficult to see that the above three steps are equivalent to the more direct approach of relaxing (12) as an SDP and applying the randomization scheme of Feige and Langberg (2001) and Han, Ye, and Zhang (2002). In other words, it is not explicitly necessarily to convert to an instance of MC-k first. For completeness, we now return our attention to the SDP relaxation itself. Problem (12) is equivalent to
min v H • vvT
s.t. D • vvT^ = 4k, v 0 = 1, vi ∈ {− 1 , 1 }, ∀i 6 = 0,
where A • B =
i,j Aij^ Bij^. To construct the relaxation, we first note that the constraint v 0 = 1 can be relaxed to v 0 ∈ {− 1 , 1 } without changing the problem since −v is feasible for the remaining constraints if and only if v is and since H • vvT^ = H • (−v)(−v)T^. Next, we rewrite the constraints vi ∈ {− 1 , 1 }, i = 0, 1 ,... , n as the single, collective constraint diag(vvT^ ) = e to arrive at the following formulation:
min v H • vvT s.t. D • vvT^ = 4k, diag(vvT^ ) = e.
We next substitute V = vvT^ , and note that V can be expressed as vvT^ if and only if V 0 with rank(V ) = 1, which gives us
min V
s.t. D • V = 4k, diag(V ) = e V 0 , rank(V ) = 1.
Although this problem is written in a different form, it is completely equivalent to our original 0-1 quadratic problem. The SDP relaxation is now obtained by dropping the rank constraint, which yields the following (convex) SDP:
min V
s.t. D • V = 4k, diag(V ) = e V 0.
Now the original NP-hard problem (3) is relaxed into a convex SDP problem which can be solved to any preset precision in polynomial time. We solve the SDP relaxation using the publicly available package SDPLR (Burer and Monteiro, 2003; SDPLR) and have implemented the approximation algorithm described in (Han et al., 2002).
Table 1: Comparison of SDP pruning, Diversity-based pruning, Kappa-pruning and original ensembles, by % error and (standard deviation)
dataset SDP-25 Div-25 Kappa-25 No Pruning autompg 10.35(0.62) 13.88(0.83) 11.91(1.52) 10.71(0.70) bupa 30.52(1.43) 35.87(1.25) 38.39(2.65) 30.32(0.43) cmc 32.82(0.87) 41.70(1.66) 43.66(1.37) 34.50(1.19) crx 13.88(0.46) 22.40(3.41) 21.78(4.44) 13.58(0.85) glass 12.53(1.12) 17.30(2.88) 16.39(2.76) 11.29(0.70) haberma 32.73(2.21) 38.63(1.30) 38.88(3.09) 34.56(1.74) heart 20.13(2.19) 28.09(2.73) 27.81(4.09) 20.40(2.39) hepatit 15.81(1.17) 19.83(2.66) 16.86(2.00) 14.71(1.84) housing 11.03(0.61) 12.37(0.91) 12.21(1.59) 10.67(0.66) ion 7.46(2.17) 10.94(5.13) 14.02(10.61) 9.85(7.72) iris 12.20(9.47) 15.00(7.84) 19.60(8.44) 13.40(11.01) pima 25.34(0.67) 31.31(3.78) 30.24(2.90) 25.06(0.78) sonar 21.43(1.68) 26.24(4.32) 25.24(2.31) 18.96(1.13) wdbc 3.38(0.34) 3.51(0.59) 3.76(0.76) 2.88(0.30) wine1-2 2.92(0.64) 6.15(3.17) 12.62(18.45) 11.85(18.82) wine1-3 1.11(0.76) 1.27(0.50) 2.58(1.01) 1.31(0.47) wine2-3 3.05(0.75) 4.56(2.50) 5.67(6.27) 2.86(3.54) wpbc 24.06(2.51) 32.35(1.88) 29.54(3.52) 24.04(2.79) vehicle1-2 41.15(2.62) 42.32(1.01) 45.17(4.65) 41.40(1.28) vehicle1-3 1.07(0.42) 3.67(3.79) 9.26(12.11) 3.21(3.24) vehicle1-4 4.52(0.36) 6.47(1.24) 6.18(2.42) 3.84(0.21) vehicle2-3 2.25(0.55) 7.34(4.01) 11.99(7.06) 5.82(4.36) vehicle2-4 5.00(1.28) 10.33(3.26) 13.57(12.65) 5.96(4.35) vehicle3-4 1.15(0.11) 0.96(0.41) 1.39(1.63) 0.67(0.39) Absolute W-L-T 23-1-0 24-0-0 12-12- Significant W-L-T 9-0-15 8-0-16 2-0-
significance level) is attached at the bottom of the table. Note that simple majority voting is used to combine the predictions of the ensembles. Prodromidis et al. (Prodromidis and Stolfo, 1998; Prodromidis and Chan, 2000) built a higher level classifier (meta-classifier) to aggregate the output of the pruned ensembles. There has been other research in this direction (Wolpert, 1992; Bennett et al., 2000; Mason et al., 1999; Grove and Schuurmans, 1998). However, there is so far no strong evidence that such a meta-classifier is generally better than simple majority voting.
Table 1 shows that the performance of the SDP-based pruning is better than that of the other two algorithms for most of the data sets involved in the computational experiments. Also, although only a quarter of the classifiers are left, the error of the pruned ensemble by SDP-based pruning is statistically the same as that of the original ensemble. In addition, we may conclude that the SDP-based pruning is more stable in terms of accuracy, by looking at the error standard deviation of the three algorithms. The error fluctuation range of the
other two algorithms is often much larger, which might explain why the SDP-based pruning is sometimes not statistically better.
There are several possible reasons why the SDP-based pruning outperforms the other two. First, the optimization procedure of the SDP-based pruning is better than greedy search. Although greedy search may produce optimal solutions in some cases, it may also perform badly when the problem is ill-conditioned, which is not a rare case for ensemble pruning. On the other hand, while the SDP approximation algorithm may not be able find optimal solutions all the time, it can provide a relatively good solution in most cases. There- fore, the SDP-based pruning turns out to be better on average and more stable. Second, the definition of divergence of the SDP-based pruning is subtly different from that of the two others. SDP-based pruning only considers the correlation between errors while the other two define pair-wise correlation based on all the data points. In fact, we want the classifiers to agree with each other when they make correct predictions. The divergence we need is indeed the divergence of the way they commit errors. Hence, the error-based divergence definition is more closely related to generalization performance. Finally, the objective func- tion of the SDP-based pruning may reflect a better trade-off between individual accuracy and pair-wise divergence. As a matter of fact, the other two algorithms do not explicitly include individual accuracy in their objective functions. The diversity-based pruning starts the search with the most accurate classifier, and both favor more accurate classifiers when the diversity measures tie. For a systematically constructed ensemble, the individual accu- racy of each classifier is not critical as long as its accuracy is over 50% and there are enough of classifiers in the ensemble. However, for a pruned ensemble, with the initial structure broken and a large portion of the members removed, the importance of individual accuracy may increase. Therefore, the individual strength of the classifiers should be appropriately considered in ensemble pruning. Although our way of including individual accuracy in the objective may not be perfect, it may contribute to the improvement of performance. The improved performance comes with a price: more computation time. Table 2 shows the time it takes to solve the pruning problem with increasing size of the original ensemble. The size of the pruned ensemble is fixed at 25. The timing test was conducted on an AMD 1.2GHz computer with 1G memory. As we mentioned before, with the SDP relaxation heuristic, the pruning problem can be solved in polynomial time. This can be verified by looking at the linearity of the log log plot of time vs. size of the original ensemble, as illustrated in Figure 1. Selecting 25 classifiers from an original ensemble with 3000 classifiers will take roughly a day, which is within the reasonable region for most applications. If each classifier (a decision tree, e.g.) is trained with 1000 points, such an ensemble learning procedure would be able to handle a dataset with 3,000,000 points. Therefore, we may cautiously conclude that the SDP-based ensemble pruning method is applicable to large scale data mining problems. Note that our subset selection routine is coded partly in MATLAB. If it were coded in C, it would have been much faster.
We have so far demonstrated the effectiveness of the SDP-based pruning algorithm based on small research data sets. As mentioned before, ensemble pruning is more relevant to large-
scale data mining implementations. Therefore, we wish to demonstrate that the SDP-based pruning algorithm is also effective and efficient under real-world conditions. We imple- mented the pruning algorithm in the following case study, where classifiers from different but closely-related problem domains are pooled together and a subset of them is then se- lected for each problem domain. This case study involves a much larger data set than the UCI sets used in the above experiments, and an original ensemble with a larger number of more divergent classifiers. The results of the study verify the algorithm’s performance in real-world applications, and show one type of situation where ensemble pruning can be particularly useful. As we know, ensemble methods not only improve classification accuracy, but also pro- vide a way to share knowledge. If the data for a problem domain are distributed at different locations, classifiers can be trained locally and then combined to create an ensemble. This centralized ensemble gathers information from each site and can potentially be more pow- erful for further predictions. Now the questions is, if we are working with several different but closely related problem domains, is sharing classifiers among those domains still a good idea? The essence of sharing classifiers is sharing common knowledge among different but closely related problem domains. A famous example of the research in this direction is the multi-task neural network (Caruana, 1997). Each problem domain is assigned one or more output nodes, while sharing some of the input and mid-layer nodes with other problem domains. Although this method is sometimes successful, it has several limitations. First, it requires that the data be at the central location for training. Second, the training speed becomes a big issue if the size of the data is large. The classifier-sharing strategy may avoid both of the drawbacks. Since the classifiers can be trained locally, the data need not be centralized. Moreover, one can use efficient algorithms like decision trees to train classifiers, so computation time becomes less of a problem. The prerequisite for sharing classifiers among different problem domains is that the data schema for each problem domain should be identical, or at least very similar. It ensures that the classifiers trained on one problem domain can also be applied to other problem domains, although the accuracy can possibly be low. Sometimes, this requires transformation of variables to satisfy this condition. It is in fact hard to tell a priori whether sharing classifiers among different problem domains will improve the overall performance. The success of this strategy depends on the connections among the problem domains and the self-completeness of information within each problem domain. However, with a screening process (ensemble pruning) that will be described later, the chance that sharing classifiers will eventually downgrade the overall performance is minimal. The cross-domain classifier-sharing strategy is tested on a publicly available marketing data set. To address the concern that sharing classifiers blindly sometimes may do harm to some of the problem domains if there exist conflicting elements among them, we apply the SDP-based pruning algorithm to select a good subset of classifiers from the entire ensemble for each problem domain. The data set is a catalog marketing data set from the Direct Marketing Association (DMEF Academic Data Set Three, Specialty Catalog Company, Code 03DMEF). The de- pendent variables are the customers’ responses to a particular promotion held by a catalog company. There are 19 different categories of products involved in the promotion, which
Table 3: Percentage of positive points (response rate) of 19 categories.
Category %Pos Category %Pos 1 0.14 11 0. 2 0.27 12 0. 3 0.04 13 0. 4 0.92 14 2. 5 0.12 15 1. 6 0.83 16 2. 7 0.44 17 0. 8 0.37 18 0. 9 0.64 19 1. 10 0.
correspond to 19 response variables. Unfortunately, the identities of the product categories are not available. The data mining problem we try to solve is to predict which categories of products a customer is going to buy based on the available historical and demographic data. We decomposed this task into 19 separate binary classification problems, building one model for each category and predicting whether the customer is going to buy from that category. Note that this whole task cannot be treated as a classification problem with 19 classes because one customer can buy products from any number of categories, including zero, so the class assignment for each individual is not exclusive. This kind of problem is sometimes referred to as “multi-label” classification problem and is more often seen in the text-mining domain (McCallum, 1999; Shen et al., 2004). Table 3 shows the percentage of positive points, or response rate, of each category. A positive point for a category represents a customer that buys one or more products from that category. It can be seen from the table that for most categories, the response rate is lower than one percent, which makes the data set highly skewed toward the non-buyers. A common way to deal with unbalanced data is to create training data sets with a balanced class distribution through sampling (Fan et al., 2004). For each category, twenty five training sets with 400 positive points and 400 negatives are bootstrapped from the original training data. A C4.5 decision tree is then built based on each training set. In total, twenty-five decision trees are obtained for each category. These twenty-five trees are grouped together to create an ensemble for future predictions. This bagging-like approach is a standard way to solve such marketing problems and often very powerful. However, it does not work well on the marketing data set used in this study. For example, the lift curve for Category 10 is almost a 45 degree line, which implies that the ensemble learned hardly anything useful from the training sets. Our explanation is that the number of distinctive positive points in the training sets for Category 10 is too small. As shown in Table 3, the original response rate for category 10 is only 0.02%, so there is simply not enough information to build a decent classifier. To improve the performance of the ensembles built by the original bagging approach, extra useful information is necessary. Sharing classifiers among different categories is our proposed solution. We cite two reasons to support this proposition. First, we are dealing with customers from the same catalog company. It is reasonable to expect that those
i is appended to the end of the data schema and labeled as “xxxx-for-this-category”. The values of the original category-specific variables for this Category i (which already have copies) are then set to be uniform for each record so that there will be no splits on these variables in the decision trees. The splits, if necessary, will be made on those newly ap- pended variables. After transformation, each category has the same number of appended category-specific variables related only to itself so the data schema of each category is still identical and the tree splits on the category-specific variables are more meaningful across categories. For instance, if there is a rule induced on a category like “if there is a discount on this category, the customer is going to buy products from this category”, it is reasonably applicable to other categories. Therefore, the interchangeability of trees among categories is increased.
Since the original bagging approach builds ensembles of 25 classifiers, here we set the size of the selected ensemble to be 25 as well for a fair comparison. Another reason to set the size of the selected ensemble equal to that of the original ensemble is that for each category, there are at least 25 relevant classifiers: those that are trained on its own data. In fact, we have experimented with other sizes such as 50, but it didn’t result in any significant difference for this particular problem.
Table 4 lists the AUCs (Area Under the ROC Curve) of three methods: original bagging (non-sharing), naive-sharing and selective-sharing, on each category. Summaries based on mean value and paired t tests (95% significance level) are attached at the bottom of the table.
The results show that selective sharing of classifiers does improve the AUCs for almost half of the categories. Especially for those categories without enough positive information, the rise in AUC is substantial (Figure 2). The overall performance of the ensembles produced by selective-sharing is almost as good as the naive-sharing ensemble. For Categories 15, 16 and 19, it is even statistically better. Note that the selected ensembles use only 25 classifiers each as compared to 475 for the naive-sharing ensemble. There are two implications of this result. First, the ensemble pruning process is quite effective. Second, the reason that the including-all ensemble is better than the individual bagging ensembles is not simply because it’s larger. There is truly useful additional information in the including-all ensemble that can be singled out by the pruning process.
Moreover, the selective sharing is a conservative version of sharing classifiers, hence it should be more robust. If there were wildly conflicting concepts among the categories, the selective-sharing would have performed better. In fact, the selective-sharing ensembles of Categories 15 and 16 do outperform the including-all ensemble by throwing away bad classifiers, as expected.
It is also interesting to look at the classifier sharing structure among different categories. Table 5 provides a list of statistics that summarizes the sharing structure, averaged over the same five runs in Table 4. The “Prior” column shows the response rate for each category. The “Used” column is the total number of classifiers trained on this category used for all categories. The “Used Own” column is the total number of classifiers trained on this category used for this category. The “Most Used” column shows the most common training category for the classifiers for each ensemble. Finally, HI index is the Herfindahl index
Table 4: AUCs of non-sharing, naive-sharing and selective-sharing ensembles
Cat. Non-sharing Naive-Sharing Selective-sharing 1 77.69(4.08) 82.93(1.21) 82.31(2.22) 2 76.89(2.03) 80.45(0.47) 77.71(5.81) 3 63.95(1.69) 84.79(1.15) 83.02(5.52) 4 82.38(1.13) 80.93(0.40) 77.94(3.15) 5 73.31(4.35) 82.06(0.95) 80.38(1.57) 6 80.45(0.60) 80.32(0.42) 78.20(2.58) 7 79.79(1.41) 81.20(0.65) 79.72(4.73) 8 75.96(0.43) 78.67(0.46) 76.71(1.51) 9 81.72(0.78) 81.33(0.58) 79.04(2.55) 10 52.67(9.71) 74.82(3.55) 72.33(6.29) 11 68.62(6.54) 80.46(1.58) 76.74(2.55) 12 57.11(5.56) 78.76(2.81) 75.42(3.56) 13 79.45(0.97) 78.56(0.52) 77.03(2.30) 14 83.50(0.26) 81.41(0.30) 81.25(2.74) 15 97.34(0.16) 93.05(1.58) 97.06(0.35) 16 97.63(0.07) 93.51(1.33) 97.66(0.13) 17 82.86(0.85) 84.82(0.61) 83.80(0.40) 18 85.60(1.05) 87.37(0.73) 88.01(0.35) 19 91.27(0.23) 89.69(0.82) 91.16(0.55) Comparison Selective vs. other 11-8-0 4-15-0 Abs.W-L-T 3-0-16 3-1-15 Sig.W-L-T
Table 5: Statistics of classifier sharing structure
Category Prior Used Used Most HI (%) Own Used index 1 0.14 2 1 13 0. 2 0.27 0 0 14 0. 3 0.04 0 0 6 0. 4 0.92 12 1 17 0. 5 0.12 1 0 17 0. 6 0.83 17 0 14 0. 7 0.44 9 0 14 0. 8 0.37 14 1 14 0. 9 0.64 22 3 14 0. 10 0.02 1 0 19 0. 11 0.13 3 0 19 0. 12 0.05 2 0 19 0. 13 0.44 18 0 19 0. 14 2.65 80 7 14 0. 15 1.70 11 0 19 0. 16 2.09 14 1 19 0. 17 0.65 94 9 19 0. 18 0.31 24 2 19 0. 19 1.17 150 18 19 0.
versus the original response rate for each category. The slope of the linear regression is 24.00 with p value 0.053, which verifies the conjecture that the classifiers trained on categories with more positive information may well capture the general properties of the potential customers and are thus widely used by other categories. The fact that the p value is slightly below the 95% significance level implies that the response rate is not the sole factor that decides the popularity of the classifiers.
(^00) 0.5 1 1.5 2 2.5 3
50
100
150
response rate %
Figure 3: Response rate of each category vs. total number of times its classifiers are used in the selected ensembles
may be a good representative. This subset includes Categories 4 and 5 because these two categories used many classifiers from Category 17, as shown in the “Most Used” column of Table 5.