Performance
This page shows how well EvoDAG classifies 30 problems and how it compares with the classifiers of scikit-learn and with the selection schemes described in Selection. The numbers were measured once and are copied here; they are not computed when the site is built.
The setup
- Problems. 30 classification problems of the UCI repository, listed below with the size of the training and of the test part, the number of variables and the number of classes. The problems that come with a training and a test set use them; the others are split in 70 % of the examples of each class for training and 30 % for test.
- Measure. Macro-F1 on the test part (the mean over the classes of the F1 of each class; 1 is perfect). Systems are compared by the average rank over the problems: on each problem the systems are ranked by macro-F1, 1 is the best, and the ranks are averaged. Lower is better. The Friedman test says whether the systems of a table can be told apart at all.
- EvoDAG. A system is
EnsembleClassifier(EvoDAGClassifier())with 30 members: each member is trained on the whole training set with the default parameters of classification, in which only the selection parameters change from one EvoDAG system to another, and there is no time limit. The class is the one with the largest median decision of the 30 models. Nothing is tuned. - scikit-learn. The 16 classifiers
AdaBoost,BernoulliNB,DecisionTree,ExtraTrees,GaussianNB,GradientBoosting,KNeighbors,LinearSVC,LogisticRegression,MLP,NearestCentroid,PassiveAggressive,Perceptron,RandomForest,SGDandSVC, each with the default parameters of its class.
The results differ from those printed in the selection article for the same configurations; the reason is explained in the note on the first argument.
| Problem | Training examples | Test examples | Variables | Classes |
|---|---|---|---|---|
| ad | 2295 | 984 | 1558 | 2 |
| adult | 32561 | 16281 | 14 | 2 |
| agaricus-lepiota | 5687 | 2437 | 22 | 7 |
| aps-failure | 60000 | 16000 | 170 | 2 |
| banknote | 960 | 412 | 4 | 2 |
| bank | 31647 | 13564 | 16 | 2 |
| biodeg | 738 | 317 | 41 | 2 |
| car | 1209 | 519 | 6 | 4 |
| census-income | 199523 | 99762 | 41 | 2 |
| cmc | 1031 | 442 | 9 | 3 |
| dota2 | 92650 | 10294 | 116 | 2 |
| drug-consumption | 1321 | 564 | 30 | 7 |
| fertility | 70 | 30 | 9 | 2 |
| IndianLiverPatient | 408 | 175 | 10 | 2 |
| iris | 105 | 45 | 4 | 3 |
| krkopt | 19639 | 8417 | 6 | 18 |
| letter-recognition | 14000 | 6000 | 16 | 26 |
| magic04 | 13314 | 5706 | 10 | 2 |
| ml-prove | 4588 | 1530 | 56 | 2 |
| musk1 | 333 | 143 | 166 | 2 |
| musk2 | 4619 | 1979 | 166 | 2 |
| optdigits | 3823 | 1797 | 64 | 10 |
| page-blocks | 3832 | 1641 | 10 | 5 |
| parkinsons | 137 | 58 | 22 | 2 |
| pendigits | 7494 | 3498 | 16 | 10 |
| segmentation | 210 | 2100 | 19 | 7 |
| sensorless | 40953 | 17556 | 48 | 11 |
| tae | 105 | 46 | 5 | 3 |
| wine | 125 | 53 | 13 | 3 |
| yeast | 1039 | 445 | 9 | 10 |
EvoDAG against the classifiers of scikit-learn
The table has the 37 systems: the 21 EvoDAG configurations that the next section names and explains, among them the default, rnd-rnd, and the 16 classifiers of scikit-learn. Friedman test over the 30 problems: p = 1.59e-68.
| System | Family | Average rank |
|---|---|---|
rnd-rnd |
EvoDAG | 10.3 |
ExtraTrees |
scikit-learn | 10.4 |
GradientBoosting |
scikit-learn | 10.9 |
RandomForest |
scikit-learn | 11.0 |
prs-fit-all |
EvoDAG | 11.1 |
agr-rnd |
EvoDAG | 11.5 |
agr-fit-all |
EvoDAG | 11.6 |
agr-fit |
EvoDAG | 12.0 |
agr-rnd-all |
EvoDAG | 12.0 |
agr-fit--fit |
EvoDAG | 12.1 |
prs-fit |
EvoDAG | 12.7 |
sim-rnd |
EvoDAG | 12.9 |
nvs-rnd |
EvoDAG | 12.9 |
fit-fit |
EvoDAG | 13.0 |
agr-rnd--fit |
EvoDAG | 13.0 |
sim-fit |
EvoDAG | 13.2 |
prs-rnd |
EvoDAG | 13.6 |
prs-rnd-all |
EvoDAG | 13.9 |
ads-rnd |
EvoDAG | 14.9 |
sim-fit-all |
EvoDAG | 15.4 |
MLP |
scikit-learn | 16.3 |
ads-fit--fit |
EvoDAG | 16.4 |
ads-fit--fit-all |
EvoDAG | 16.7 |
sim-rnd-all |
EvoDAG | 16.8 |
DecisionTree |
scikit-learn | 17.4 |
ads-rnd-all |
EvoDAG | 18.2 |
KNeighbors |
scikit-learn | 21.6 |
LinearSVC |
scikit-learn | 21.8 |
LogisticRegression |
scikit-learn | 21.8 |
SVC |
scikit-learn | 25.2 |
AdaBoost |
scikit-learn | 25.8 |
GaussianNB |
scikit-learn | 26.8 |
SGD |
scikit-learn | 29.9 |
PassiveAggressive |
scikit-learn | 31.5 |
Perceptron |
scikit-learn | 31.8 |
BernoulliNB |
scikit-learn | 31.9 |
NearestCentroid |
scikit-learn | 33.0 |
The default EvoDAG, rnd-rnd, is first of the 37, with an average rank of 10.3. ExtraTrees (10.4) is second, GradientBoosting (10.9) third and RandomForest (11.0) fourth; the EvoDAG configurations that follow are prs-fit-all (11.1), agr-rnd (11.5), agr-fit-all (11.6). MLP (16.3) is ahead of 4 of the 21 EvoDAG configurations and DecisionTree (17.4) of 1 (ads-rnd-all, 18.2); the other 11 classifiers, KNeighbors (21.6), LinearSVC (21.8), LogisticRegression (21.8), SVC (25.2), AdaBoost (25.8), GaussianNB (26.8), SGD (29.9), PassiveAggressive (31.5), Perceptron (31.8), BernoulliNB (31.9), NearestCentroid (33.0), are behind every one of the 21. The Friedman test says that the 37 systems are not equivalent; it does not compare pairs, so the table does not say whether the differences between neighbouring systems are significant. A rank depends on the systems of its table, so these ranks are not comparable with those of the two tables of the selection schemes.
Here is the macro-F1 of the default EvoDAG and of the 16 classifiers on each problem (the columns are in the order of the table above, leaving out the other 20 EvoDAG configurations):
| dataset | rnd-rnd (default) | ExtraTrees | GradientBoosting | RandomForest | MLP | DecisionTree | KNeighbors | LinearSVC | LogisticRegression | SVC | AdaBoost | GaussianNB | SGD | PassiveAggressive | Perceptron | BernoulliNB | NearestCentroid |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ad | 0.94 | 0.96 | 0.96 | 0.97 | 0.96 | 0.95 | 0.90 | 0.94 | 0.95 | 0.78 | 0.90 | 0.68 | 0.46 | 0.67 | 0.46 | 0.93 | 0.75 |
| adult | 0.79 | 0.77 | 0.80 | 0.79 | 0.64 | 0.74 | 0.63 | 0.64 | 0.63 | 0.58 | 0.77 | 0.65 | 0.64 | 0.59 | 0.57 | 0.69 | 0.46 |
| agaricus-lepiota | 0.70 | 0.45 | 0.57 | 0.46 | 0.61 | 0.43 | 0.53 | 0.64 | 0.62 | 0.55 | 0.26 | 0.59 | 0.60 | 0.50 | 0.42 | 0.59 | 0.45 |
| aps-failure | 0.84 | 0.90 | 0.88 | 0.91 | 0.88 | 0.87 | 0.78 | 0.86 | 0.83 | 0.53 | 0.83 | 0.78 | 0.86 | 0.68 | 0.83 | 0.66 | 0.17 |
| banknote | 1.00 | 1.00 | 0.99 | 0.98 | 1.00 | 0.98 | 1.00 | 0.98 | 0.98 | 1.00 | 0.99 | 0.81 | 0.98 | 0.98 | 0.97 | 0.83 | 0.72 |
| bank | 0.75 | 0.71 | 0.73 | 0.73 | 0.66 | 0.70 | 0.65 | 0.59 | 0.61 | 0.47 | 0.67 | 0.66 | 0.62 | 0.58 | 0.62 | 0.60 | 0.53 |
| biodeg | 0.87 | 0.87 | 0.85 | 0.87 | 0.87 | 0.81 | 0.81 | 0.87 | 0.85 | 0.78 | 0.82 | 0.73 | 0.77 | 0.82 | 0.83 | 0.77 | 0.62 |
| car | 0.80 | 0.93 | 0.97 | 0.92 | 0.67 | 0.95 | 0.76 | 0.27 | 0.35 | 0.78 | 0.43 | 0.33 | 0.28 | 0.30 | 0.22 | 0.36 | 0.34 |
| census-income | 0.77 | 0.74 | 0.75 | 0.76 | 0.73 | 0.72 | 0.68 | 0.63 | 0.64 | 0.61 | 0.71 | 0.60 | 0.61 | 0.62 | 0.65 | 0.62 | 0.63 |
| cmc | 0.52 | 0.50 | 0.51 | 0.53 | 0.54 | 0.48 | 0.50 | 0.47 | 0.49 | 0.39 | 0.52 | 0.47 | 0.24 | 0.23 | 0.37 | 0.40 | 0.35 |
| dota2 | 0.59 | 0.57 | 0.56 | 0.57 | 0.58 | 0.52 | 0.53 | 0.59 | 0.59 | 0.35 | 0.51 | 0.56 | 0.41 | 0.32 | 0.32 | 0.56 | 0.50 |
| drug-consumption | 0.18 | 0.17 | 0.22 | 0.16 | 0.21 | 0.18 | 0.19 | 0.17 | 0.20 | 0.12 | 0.19 | 0.19 | 0.18 | 0.12 | 0.19 | 0.22 | 0.19 |
| fertility | 0.46 | 0.63 | 0.57 | 0.63 | 0.46 | 0.60 | 0.46 | 0.46 | 0.46 | 0.46 | 0.63 | 0.71 | 0.46 | 0.54 | 0.61 | 0.46 | 0.51 |
| IndianLiverPatient | 0.63 | 0.60 | 0.60 | 0.59 | 0.45 | 0.60 | 0.60 | 0.53 | 0.56 | 0.42 | 0.58 | 0.56 | 0.37 | 0.51 | 0.42 | 0.42 | 0.56 |
| iris | 0.93 | 0.93 | 0.93 | 0.93 | 0.98 | 0.93 | 0.96 | 0.93 | 0.93 | 0.96 | 0.93 | 0.96 | 0.91 | 0.64 | 0.68 | 0.17 | 0.89 |
| krkopt | 0.27 | 0.79 | 0.59 | 0.82 | 0.57 | 0.81 | 0.66 | 0.16 | 0.20 | 0.38 | 0.07 | 0.19 | 0.07 | 0.05 | 0.04 | 0.04 | 0.12 |
| letter-recognition | 0.64 | 0.97 | 0.92 | 0.96 | 0.92 | 0.88 | 0.95 | 0.69 | 0.76 | 0.92 | 0.22 | 0.64 | 0.59 | 0.41 | 0.53 | 0.08 | 0.57 |
| magic04 | 0.84 | 0.85 | 0.85 | 0.86 | 0.80 | 0.79 | 0.78 | 0.76 | 0.76 | 0.79 | 0.80 | 0.65 | 0.74 | 0.75 | 0.68 | 0.39 | 0.63 |
| ml-prove | 1.00 | 1.00 | 1.00 | 0.99 | 1.00 | 1.00 | 0.94 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.85 | 0.73 |
| musk1 | 0.89 | 0.93 | 0.89 | 0.88 | 0.79 | 0.73 | 0.87 | 0.85 | 0.83 | 0.89 | 0.82 | 0.78 | 0.83 | 0.83 | 0.80 | 0.72 | 0.62 |
| musk2 | 0.95 | 0.95 | 0.92 | 0.94 | 0.95 | 0.94 | 0.92 | 0.91 | 0.90 | 0.91 | 0.82 | 0.74 | 0.84 | 0.88 | 0.83 | 0.67 | 0.61 |
| optdigits | 0.95 | 0.97 | 0.96 | 0.97 | 0.97 | 0.85 | 0.98 | 0.94 | 0.95 | 0.98 | 0.74 | 0.79 | 0.93 | 0.93 | 0.91 | 0.84 | 0.89 |
| page-blocks | 0.78 | 0.89 | 0.87 | 0.85 | 0.76 | 0.85 | 0.73 | 0.73 | 0.74 | 0.33 | 0.66 | 0.61 | 0.70 | 0.45 | 0.49 | 0.19 | 0.17 |
| parkinsons | 0.72 | 0.80 | 0.84 | 0.74 | 0.72 | 0.74 | 0.74 | 0.76 | 0.78 | 0.72 | 0.74 | 0.73 | 0.43 | 0.43 | 0.43 | 0.43 | 0.65 |
| pendigits | 0.94 | 0.97 | 0.96 | 0.96 | 0.96 | 0.92 | 0.98 | 0.90 | 0.91 | 0.98 | 0.58 | 0.82 | 0.83 | 0.84 | 0.80 | 0.60 | 0.77 |
| segmentation | 0.90 | 0.95 | 0.94 | 0.96 | 0.80 | 0.91 | 0.80 | 0.91 | 0.90 | 0.75 | 0.70 | 0.79 | 0.57 | 0.75 | 0.41 | 0.40 | 0.69 |
| sensorless | 0.95 | 1.00 | 1.00 | 1.00 | 0.97 | 0.98 | 0.11 | 0.69 | 0.58 | 0.13 | 0.26 | 0.75 | 0.32 | 0.29 | 0.21 | 0.48 | 0.07 |
| tae | 0.50 | 0.63 | 0.63 | 0.63 | 0.46 | 0.63 | 0.43 | 0.49 | 0.48 | 0.42 | 0.48 | 0.48 | 0.26 | 0.22 | 0.45 | 0.17 | 0.43 |
| wine | 0.98 | 1.00 | 0.93 | 0.98 | 0.91 | 0.91 | 0.69 | 0.96 | 0.94 | 0.65 | 0.96 | 0.98 | 0.53 | 0.62 | 0.68 | 0.19 | 0.73 |
| yeast | 0.40 | 0.53 | 0.53 | 0.44 | 0.07 | 0.37 | 0.31 | 0.52 | 0.14 | 0.06 | 0.32 | 0.40 | 0.03 | 0.06 | 0.05 | 0.10 | 0.06 |
Among the 17 systems of this table the default EvoDAG has the best macro-F1 (at the two decimals of the table) on agaricus-lepiota, banknote, bank, biodeg, census-income, dota2, IndianLiverPatient, ml-prove and musk2 (tied with at least one classifier on banknote, biodeg, dota2, ml-prove, musk2). It does poorly on the problems with many classes: on krkopt (18 classes) its macro-F1 is 0.27 against 0.79 of ExtraTrees and 0.82 of RandomForest, and on letter-recognition (26 classes) 0.64 against 0.97 of ExtraTrees and 0.96 of RandomForest. The classifiers based on decision trees do well on those problems.
Training time
EvoDAG is slower than every classifier of scikit-learn. The table has the average rank of the time that each system takes to train, in seconds per training example (for EvoDAG, the sum over the 30 models); 1 is the fastest. Friedman test over the 30 problems: p = 4.57e-195.
| System | Family | Average rank |
|---|---|---|
KNeighbors |
scikit-learn | 2.3 |
NearestCentroid |
scikit-learn | 3.0 |
GaussianNB |
scikit-learn | 3.6 |
BernoulliNB |
scikit-learn | 4.0 |
Perceptron |
scikit-learn | 6.1 |
DecisionTree |
scikit-learn | 6.1 |
PassiveAggressive |
scikit-learn | 6.8 |
LinearSVC |
scikit-learn | 7.8 |
SGD |
scikit-learn | 8.6 |
LogisticRegression |
scikit-learn | 9.4 |
SVC |
scikit-learn | 10.5 |
AdaBoost |
scikit-learn | 11.8 |
ExtraTrees |
scikit-learn | 12.3 |
RandomForest |
scikit-learn | 13.5 |
MLP |
scikit-learn | 14.8 |
GradientBoosting |
scikit-learn | 15.3 |
rnd-rnd |
EvoDAG | 18.0 |
agr-rnd--fit |
EvoDAG | 20.3 |
agr-rnd |
EvoDAG | 20.5 |
fit-fit |
EvoDAG | 20.7 |
agr-fit--fit |
EvoDAG | 21.4 |
agr-fit |
EvoDAG | 21.5 |
agr-rnd-all |
EvoDAG | 21.8 |
agr-fit-all |
EvoDAG | 22.3 |
nvs-rnd |
EvoDAG | 24.3 |
sim-rnd |
EvoDAG | 27.3 |
sim-fit-all |
EvoDAG | 27.5 |
sim-fit |
EvoDAG | 27.6 |
sim-rnd-all |
EvoDAG | 27.6 |
prs-rnd |
EvoDAG | 30.0 |
prs-fit |
EvoDAG | 30.3 |
prs-rnd-all |
EvoDAG | 31.7 |
prs-fit-all |
EvoDAG | 32.1 |
ads-rnd |
EvoDAG | 34.2 |
ads-rnd-all |
EvoDAG | 35.2 |
ads-fit--fit |
EvoDAG | 36.0 |
ads-fit--fit-all |
EvoDAG | 36.6 |
On every problem the 21 EvoDAG systems are the 21 slowest. Of them rnd-rnd, the default, has the best average rank of time (18.0) and the four configurations of Angle-Driven Selection (ads) the worst (ads-rnd 34.2, ads-rnd-all 35.2, ads-fit--fit 36.0, ads-fit--fit-all 36.6). The times are the sum over the 30 models of the ensemble; since the models are independent they can be trained in parallel (n_jobs), which reduces the time you wait.
The selection schemes
The next two tables compare EvoDAG systems that differ only in the parameters of the selection (see Selection). Each system is named by those parameters, <parent>-<negative>, with two optional parts:
<parent>is the value ofselection:fitis"fitness",rndis"random",agris"agreement",simis"cosine",prsis"pearson",adsis"angle"andnvsis"novelty".<negative>is how the individual that leaves is chosen:fitisnegative_selection=True(a tournament on fitness) andrndisnegative_selection=False(random).--fitafter the negative selection meansfirst_selection="fitness"; without it the first argument is random (first_selection="random";fit-fit,rnd-rndandnvs-rnddo not use it).-allat the end meansheuristic_functions="all", the heuristic applied to every function with more than one argument; without itheuristic_functions="tailored".
For example rnd-rnd is selection="random", negative_selection=False: the default of classification (it does not use first_selection or heuristic_functions). agr-rnd is selection="agreement", negative_selection=False, first_selection="random", heuristic_functions="tailored": the agreement for the arguments of the sum and of the classifiers that the selection article proposes. fit-fit is the classical selection, a tournament on fitness for the arguments and for the individual that leaves. All the systems use fitness_function="macro-F1" and random_generations=0.
Combinations of parent and negative selection
Fitness, random, cosine, Pearson and agreement for the parents; fitness or random for the individual that leaves; and the three heuristics also applied to every function (-all). Friedman test over the 30 problems: p = 0.0012.
| Combination | Average rank |
|---|---|
rnd-rnd |
4.9 |
prs-fit-all |
5.4 |
agr-fit-all |
5.5 |
agr-rnd |
5.6 |
agr-fit |
5.8 |
agr-rnd-all |
6.0 |
prs-fit |
6.2 |
sim-rnd |
6.2 |
sim-fit |
6.4 |
fit-fit |
6.6 |
prs-rnd-all |
7.1 |
prs-rnd |
7.3 |
sim-fit-all |
8.0 |
sim-rnd-all |
9.0 |
The default configuration, rnd-rnd, the selection of every argument at random, is first of the 14, with 4.9; prs-fit-all (5.4), agr-fit-all (5.5), agr-rnd (5.6) and agr-fit (5.8) follow. The classical fit-fit is tenth with 6.6. Applying the cosine to every function is last (sim-fit-all 8.0, sim-rnd-all 9.0). Only the Friedman test was computed: the table says that the 14 combinations are not equivalent, not which pairs differ.
Selection schemes
Fifteen systems: some of the combinations of the previous table, Angle-Driven Selection (ads), Novelty Search (nvs) and the variants that choose the first argument by fitness (--fit). Friedman test over the 30 problems: p = 0.000262.
| Scheme | Average rank |
|---|---|
rnd-rnd |
4.8 |
agr-rnd |
5.5 |
agr-fit |
5.8 |
agr-fit--fit |
5.9 |
prs-fit |
6.5 |
agr-rnd--fit |
6.5 |
fit-fit |
6.5 |
sim-rnd |
6.6 |
sim-fit |
6.7 |
nvs-rnd |
6.8 |
prs-rnd |
7.3 |
ads-rnd |
7.7 |
ads-fit--fit |
8.9 |
ads-fit--fit-all |
9.0 |
ads-rnd-all |
9.8 |
In this table rnd-rnd (4.8) is the best-ranked, agr-rnd is second with 5.5 and agr-fit third with 5.8; the classical fit-fit is sixth with 6.5 (tied with agr-rnd--fit), Novelty Search (nvs-rnd) is tenth with 6.8 and the variants of Angle-Driven Selection are between 7.7 and 9.8. Again, only the Friedman test was computed.