I\'m trying to create a custom criterion (written in cython) for the DecisionTreeRegressor from sklearn. Therefore, I have to create a custom node_value function. Within thi