stable_cart.root_agreement

stable_cart.root_agreement(models)[source]

Fraction of fits that test the most common root feature.

1.0 means every fit opens the same way. This is the single most visible part of an explanation, and the part a reader remembers.

Parameters

models

Fitted trees, each from a different training sample.

Returns

float

Modal root-feature frequency, in [0, 1].

Raises

ValueError

If no models are supplied.

Parameters:

models (list)

Return type:

float