Model.prc_curve¶
In [ ]:
Model.prc_curve(ax=None,
nbins: int = 30,
**style_kwds,)
Draws the model PRC curve.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
ax | Matplotlib axes object | ✓ | The axes to plot on. |
nbins | int | ✓ | Curve number of bins. |
**style_kwds | any | ✓ | Any optional parameter to pass to the Matplotlib functions. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [9]:
# Binary Classification
model = RandomForestClassifier(name = "public.RF_titanic",
n_estimators = 20,
max_features = "auto",
max_leaf_nodes = 32,
sample = 0.7,
max_depth = 3,
min_samples_leaf = 5,
min_info_gain = 0.0,
nbins = 32)
model.drop()
model.fit("public.titanic", ["age", "fare", "sex"], "survived")
# PRC Curve
model.prc_curve()
Out[9]:
