vonjd / OneR

This R package implements the One Rule (OneR) Machine Learning classification algorithm with enhancements for sophisticated handling of numeric data and missing values together with extensive diagnostic functions.
Other
40 stars 3 forks source link

Error: oneR() package while using dataset #8

Closed reena2018 closed 3 years ago

reena2018 commented 3 years ago

I am getting errors while using optbin() function from oneR() package on my dataset to discretize numerical data to categorical bins. Error: image Sample dataset: image

Please help me in solving this issue.

reena2018 commented 3 years ago

Is the error because of negative values in the dataset?

vonjd commented 3 years ago

Could you please provide the exact commands you are using? Thank you

reena2018 commented 3 years ago

Yes. It’s Data<- optbin(upscale)

On Sat, 28 Nov 2020 at 11:21 PM, vonjd notifications@github.com wrote:

Could you please provide the exact commands you are using? Thank you

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vonjd/OneR/issues/8#issuecomment-735268975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFRZFNOCH37XTFRQDD5DODSSE2AVANCNFSM4UF4RUVQ .

--

            [image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> Reena

Lokare ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial

https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en

reena2018 commented 3 years ago

image

reena2018 commented 3 years ago

image dataset

vonjd commented 3 years ago

How many instances do you have altogether? Is the last column your target?

reena2018 commented 3 years ago

Yes. Last column is the target.

On Sun, 29 Nov 2020 at 12:16 AM, vonjd notifications@github.com wrote:

How many instances do you have altogether? Is the last column your target?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vonjd/OneR/issues/8#issuecomment-735275333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFRZFM2IXLQY27ENSGN6WDSSFAQTANCNFSM4UF4RUVQ .

--

            [image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> Reena

Lokare ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial

https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en

vonjd commented 3 years ago

The only explanation I have at the moment is that because of the excessive filtering due to missing values only one value in the target column "survives". Try optbin with na.omit = FALSE to test this.

reena2018 commented 3 years ago

Ok. I will try this. Thank you very much.

On Sun, 29 Nov 2020 at 12:36 AM, vonjd notifications@github.com wrote:

The only explanation I have at the moment is that because of the excessive filtering due to missing values only one value in the target column "survives". Try optbin with na.omit = FALSE to test this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vonjd/OneR/issues/8#issuecomment-735277781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFRZFMUYCEESSSYRQGVYH3SSFC4HANCNFSM4UF4RUVQ .

--

            [image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> Reena

Lokare ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial

https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en

vonjd commented 3 years ago

You are very welcome! Happy that I could help.