PRC Curve

In [6]:
from verticapy.learn.ensemble import RandomForestClassifier

# 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.fit("public.titanic", ["age", "fare", "gender"], "survived")

# PRC Curve
model.prc_curve(color = "#0073E7")
Out[6]:
threshold
recall
precision
1010
20.01.00.392570281124498
30.03333333333333331.00.392570281124498
40.06666666666666671.00.392570281124498
50.11.00.392570281124498
60.1333333333333331.00.392570281124498
70.1666666666666670.8797953964194370.545166402535658
80.20.8158567774936060.640562248995984
90.2333333333333330.8158567774936060.643145161290323
100.2666666666666670.7979539641943730.673866090712743
110.30.7442455242966750.718518518518519
120.3333333333333330.7416879795396420.723192019950125
130.3666666666666670.7340153452685420.73027989821883
140.40.7314578005115090.735218508997429
150.4333333333333330.7237851662404090.735064935064935
160.4666666666666670.7135549872122760.740053050397878
170.50.693094629156010.744505494505495
180.5333333333333330.6905370843989770.743801652892562
190.5666666666666670.6803069053708440.747191011235955
200.60.6649616368286450.75801749271137
210.6333333333333330.5140664961636830.84453781512605
220.6666666666666670.4603580562659850.87378640776699
230.70.3222506393861890.954545454545455
240.7333333333333330.2864450127877240.973913043478261
250.7666666666666670.2864450127877240.973913043478261
260.80.2864450127877240.973913043478261
270.8333333333333330.2864450127877240.982456140350877
280.8666666666666670.2864450127877240.982456140350877
290.90.2327365728900260.989130434782609
300.9333333333333330.1432225063938620.982456140350877
310.9666666666666670.0409207161125321.0
32101
Rows: 1-32 | Columns: 3