Skip to main content

models.PartialDependence

The result of partial_dependence.

Usage

Source

models.PartialDependence(
    feature,
    values,
    by_split,
)

Attributes

feature: str
values: list
by_split: list of list of float
by_split[i][v]: on split i, the mean prediction with the feature set to values[v] on every row.

Attributes

Name Description
mean The mean prediction at each value, averaged over the splits.

mean

The mean prediction at each value, averaged over the splits.

mean

Methods

Name Description
combine() One result from several over the same feature and values.
relative() The mean predictions divided by the one at value: for a

combine()

One result from several over the same feature and values.

Usage

Source

combine(results)

relative()

The mean predictions divided by the one at value: for a

Usage

Source

relative(value)

log-link model without interactions, exactly the feature’s relativities.