Generic function for returning the weights for each feature in the regression prediction at a node of a tree