I'm using classifier tree to explore the mnist dataset.
The data to create the tree are currently composed with the 26x26 pixs of each images.
My idea is to compute the number of connexe part for each image and to add this result to the data. I suceed to do this with an image processing algorithm.
Then I want to force the tree of the classifier to split on this value (to see if my idea is efficient). Is there a way to do it easily ?