Re: [R] missing values error in if statement

2022-05-20 Thread Rui Barradas
Hello, I'm getting an error when running your code: learner = lrn("classif.randomForest", predict_type = "prob") #> Error: Element with key 'classif.randomForest' not found in DictionaryLearner! Rui Barradas Às 14:12 de 20/05/2022, Neha gupta escreveu: When I run print(fc) it shows 'Inf'.

Re: [R] missing values error in if statement

2022-05-20 Thread PIKAL Petr
etr > -Original Message- > From: R-help <mailto:r-help-boun...@r-project.org> On Behalf Of Neha gupta > Sent: Friday, May 20, 2022 3:03 PM > To: Jeff Newmiller <mailto:jdnew...@dcn.davis.ca.us> > Cc: r-help mailing list <mailto:r-help@r-project.org> >

Re: [R] missing values error in if statement

2022-05-20 Thread Neha gupta
Actually it's found in a library (mlr3extralearners). I have already imported this library in my code. On Friday, May 20, 2022, Rui Barradas wrote: > Hello, > > I'm getting an error when running your code: > > learner = lrn("classif.randomForest", predict_type = "prob") > #> Error: Element with

Re: [R] missing values error in if statement

2022-05-20 Thread Neha gupta
When I run print(fc) it shows 'Inf'. It mean it doesn't calculate the bias/fairness, maybe due to missing values. RF passes 1/5 metrics Total loss : Inf On Fri, May 20, 2022 at 3:06 PM Rui Barradas wrote: > Hello, > > This is a frequent way of coding and a source for questions. > > > ifels

Re: [R] missing values error in if statement

2022-05-20 Thread PIKAL Petr
f Neha gupta > Sent: Friday, May 20, 2022 10:16 AM > To: Jeff Newmiller > Cc: r-help mailing list > Subject: Re: [R] missing values error in if statement > > I am sorry.. The code is here and data is provided at the end of this > email. > > data = readARFF("aho

Re: [R] missing values error in if statement

2022-05-19 Thread Jeff Newmiller
Not reproducible. Posted HTML. On May 19, 2022 2:30:58 PM PDT, Neha gupta wrote: >Why do I get the following error when my variable in the 'if statement' has >no missing values. > >I check with is.na(my variable) and it has no missing values > >Error in if (fraction <= 1) { : missing value where

[R] missing values error in if statement

2022-05-19 Thread Neha gupta
Why do I get the following error when my variable in the 'if statement' has no missing values. I check with is.na(my variable) and it has no missing values Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed Best regards [[alternative HTML version deleted]] __