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]]
Questions on specialized packages (the ROSE package presumably) may not get answered on this list. If that turns out to be the case, you may wish to contact the package maintainer: Nicola Lunardon <lunardon at stat.unipd.it> . Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Feb 5, 2020 at 8:57 AM javed khan <javedbtk111 at 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 at 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]]
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 at 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 at 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 at 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.