Decision Tree Classifier

Interpretable tree-based model using ALL tags

← Back to index

Model overview

Decision tree classifier for predicting taxonomy IDs from product tags. Unlike parameter-constrained models, this classifier uses ALL available tags. The tree structure provides natural interpretability - each decision node tests whether a specific tag is present, leading to a taxonomy prediction at the leaves.

5 CV folds
55.21% Mean accuracy
0.5860 Mean F1
0.208079 Mean p-adic loss
40,902 Avg effective params

Cross-validation results

FoldAccuracyF1P-adic loss (mean)Tree depthNodesEffective params
056.16%0.59660.1958298464,68141,819
153.76%0.57230.2131848404,59541,091
255.61%0.58970.2103498314,59141,001
354.96%0.57950.2047808464,53940,550
455.58%0.59180.2162548464,48340,050

Feature importances (Top 50)

Feature importances are averaged across all 5 folds. The "Folds" column shows how many folds used this feature.

RankTagAvg ImportanceFolds
1BLACK0.0043595/5
2BIRTHDAY0.0043135/5
3KIDS0.0042515/5
4ACCESSORIES0.0037155/5
5CLOTHING0.0033955/5
6HAT0.0033725/5
7DRESS0.0032165/5
8CHRISTMAS0.0028705/5
9SIZE-36R-30W0.0028681/5
10ALL30MLPRODUCTS0.0028592/5
11GRANITE0.0028551/5
12RESPIRATORY0.0028551/5
13MOTORCYCLES0.0028501/5
14PRINTED POCKET SQ0.0028493/5
15SHOP: PELLETS0.0028495/5
16POWER0.0028495/5
17RAFCAMERA0.0028495/5
18HEALTH AND BEAUTY0.0028495/5
19BACKPACK0.0028495/5
20TUBES0.0028495/5
21TOWEL-RAILS0.0028495/5
22CORPORATE0.0028495/5
23GARMIN BIKE MOUNTS0.0028495/5
24KEYS0.0028495/5
25SIRUP0.0028495/5
26PLANT STANDS AND BENCHES0.0028495/5
27WARRANTY-SEATS_20.0028495/5
28EXTEND0.0028495/5
29THERMOSTATS0.0028495/5
30PRINTED SILK0.0028482/5
31IMT TOOLS0.0028474/5
32YEAST0.0028444/5
33NICOTINE0.0028423/5
34OVER 250.0028401/5
35INFUSED0.0028311/5
36NEW0.0027815/5
37SIENA0.0027332/5
38EBOOK0.0027275/5
39WHISKEY/WHISKY0.0027225/5
40WIRE MANAGEMENT0.0027165/5
41VINYL CAFE0.0027123/5
42SLIPPERS0.0027115/5
43HALL50OFF0.0027102/5
44BEAN BAG CHAIRS0.0027081/5
45AFRICAN BASKET0.0027045/5
4620240.0026813/5
47PLATES0.0026805/5
48SUPER CHUNKY BEAN BAG0.0026721/5
49ZERO0.0026621/5
5013 MONTHS TO 24 MONTHS0.0026563/5