[R] Class balancing ratio

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Wed Feb 5 23:36:44 CET 2020


Hi Javed,
You may want to look at the

p=

argument to the function. It is explained in the help page.

Jim

> On Wed, Feb 5, 2020 at 8:57 AM javed khan <javedbtk111 using gmail.com> wrote:
>
> > Hello to all
> >
> > I am a dataset which needs class balancing ratio of 20 and 80 for class
> > values. In r language, I am using ROSE function as
> >
> > Bal=ROSE (cls~., data =training data)
> >
> > My question is how can we tell the ROSE function to make the balance ratio
> > 20 80?
> >
> > Best regards
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list