models.PartialDependence
The result of partial_dependence.
Usage
models.PartialDependence(
feature,
values,
by_split,
)Attributes
feature: strvalues: listby_split: list of list of float-
by_split[i][v]: on spliti, the mean prediction with the feature set tovalues[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
combine(results)relative()
The mean predictions divided by the one at value: for a
Usage
relative(value)log-link model without interactions, exactly the feature’s relativities.