Many Fold CV

dd
Image Sensor

Many Fold CV

I would like to change the number of folds for my regression CV.
I know that I have to use 

set_partitioning_method(cv_method="CV", reps=20, validation_pct=10, holdout_pct=20)¶

but I've no idea where to use this.
I tried to add it in partitioning_method 

project.analyze_and_model(
target=target,
metric=ACCURACY_METRIC.MAE,
worker_count=-1,
partitioning_method = spec
) 

 Any help will be appreciated

0 Kudos
1 Solution

Accepted Solutions
calamari
DataRobot Employee
DataRobot Employee

Hi @dd 

To set the partitioning you need to set it at the project level, so the way to call it is by:

project.set_partitioning_method(cv_method="CV", reps=20, validation_pct=10, holdout_pct=20)

 

Hope that helps. If it doesn't please reply with the updated issue.

Cheers,

Callum

 

 


View solution in original post

2 Replies
calamari
DataRobot Employee
DataRobot Employee

Hi @dd 

To set the partitioning you need to set it at the project level, so the way to call it is by:

project.set_partitioning_method(cv_method="CV", reps=20, validation_pct=10, holdout_pct=20)

 

Hope that helps. If it doesn't please reply with the updated issue.

Cheers,

Callum

 

 


dd
Image Sensor

Thank you!  Simpler than what I thought.