This can be done, but not very reasonable.
The decision tree in sklearn is written in Cython (a hybrid of C ++ and Python) and uses a predefined list of separation criteria for Cython. This makes sklearn trees very fast, but not easily customizable.
Python, Sklearn Cython. , . , , , Python ++ node. , .
, Cython, scikit-learn . , Python.
ββ, M5 Weka.
, , - .