Validation Curve

In [2]:
from verticapy.learn.ensemble import RandomForestClassifier
model = RandomForestClassifier(name = "public.RF_titanic")

from verticapy.learn.model_selection import validation_curve
validation_curve(model,
                 "max_depth",
                 [1, 5, 8, 10, 20, 30, 40, 50, 60],
                 input_relation = "public.titanic", 
                 X = ["age", "fare", "parch",],
                 y = "survived", 
                 cv = 3,
                 metric = "auc",)
Out[2]:
max_depth
training_score_lower
training_score
training_score_upper
test_score_lower
test_score
test_score_upper
110.66772500455614970.68707648061418690.70642795667222410.65885657628253290.68537123533135880.7118858943801847
250.75889331442166240.7637213920857450.76854946974982750.68397649166971810.69526795733126840.7065594229928188
380.80685052391394090.81496426578987390.8230780076658070.66463439704864310.67778271299075680.6909310289328704
4100.82213409308486550.83181321885139670.84149234461792790.64091366292387060.66496577668190590.6890178904399412
5200.83415686454261340.84466139557914810.85516592661568280.6246727568713460.64975152220079440.6748302875302427
6300.82409609370556990.83953319909575640.85497030448594290.63903658993217020.66725749843156230.6954784069309545
7400.83690058927072930.83883266363774010.84076473800475090.64934551617160210.65696009134978580.6645746665279696
8500.83613077351880020.84863596059482120.86114114767084220.62840831044200730.64186114539064840.6553139803392896
9600.84018089068165120.84363585077959910.8470908108775470.64394770665522490.65649135294760230.6690349992399797
Rows: 1-9 | Columns: 7