vDataFrame.iv_woe¶
In [ ]:
vDataFrame.iv_woe(y: str,
columns: list = [],
nbins: int = 10,
show: bool = True,
ax=None)
Computes the Information Value (IV) Table. It tells the predictive power of an independent variable in relation to the dependent variable.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
y | str | ❌ | Response vcolumn. |
columns | list | ✓ | List of the vcolumns names. If empty, all the vcolumns except the response will be used. |
nbins | int | ✓ | Maximum number of bins used for the discretization (must be > 1). |
show | bool | ✓ | If set to True, the IV Plot will be drawn using Matplotlib. |
ax | Matplotlib axes object | ✓ | The axes to plot on. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [16]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic)
In [17]:
titanic.iv_woe(y = "survived",
nbins = 20)
Out[17]:
See Also¶
| vDataFrame[].iv_woe | Computes the Information Value (IV) / Weight Of Evidence (WOE) Table. |
