Is it possible to specify the width of the histogram when stratified sampling a numerical sequence?

Is it possible to specify the width of the histogram when stratified sampling a numerical sequence?

Use the following link to learn.

Stratified sampling of numerical data is divided into four parts.
Presumably, this is a quartile range.

Is it possible to specify more than four partitions if I want to sample the data more precisely to make the model learn better?

thank you!

Yes, there is the breaks parameter just for that.

> args(rsample::initial_split)
function (data, prop = 3/4, strata = NULL, breaks = 4, pool = 0.1, 
    ...) 
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.