Re: [R] OSX-specific Bug in randomForest

2024-10-25 Thread Martin Maechler
> "pd" == peter dalgaard > on Thu, 24 Oct 2024 11:00:25 +0200 writes: pd> This is probably Apple Silicon specific, not OSX per se: >> sum(rep(1 / 9, 9)) - 1 pd> [1] 0 >> On 23 Oct 2024, at 07:26 , Stevie Pederson >> wrote: >> >> sum(rep(1 / 9, 9)) - 1 #

Re: [R] OSX-specific Bug in randomForest

2024-10-24 Thread Stevie Pederson
Thank you all for such insightful comments & let's hope it gets sorted soon. I was unaware of the isTRUE() and all.equal() functions so they're very helpful things indeed to add to my own toolkit. Our current solution is to move from a local machine to an HPC-based environment so we have a way for

Re: [R] OSX-specific Bug in randomForest

2024-10-24 Thread peter dalgaard
This is probably Apple Silicon specific, not OSX per se: > sum(rep(1 / 9, 9)) - 1 [1] 0 > On 23 Oct 2024, at 07:26 , Stevie Pederson > wrote: > > sum(rep(1 / 9, 9)) - 1 > # [1] 2.220446e-16 -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000

Re: [R] OSX-specific Bug in randomForest

2024-10-23 Thread Martin Maechler
> Duncan Murdoch > on Wed, 23 Oct 2024 05:33:57 -0400 writes: > I've cc'd this to the package maintainer, Andy Liaw > . I'm not sure he reads this list. > Duncan Murdoch Also, note that you should check for absolute difference, i.e., if (abs(sum(cutoff) - 1) > .Machi

Re: [R] OSX-specific Bug in randomForest

2024-10-23 Thread Duncan Murdoch
I've cc'd this to the package maintainer, Andy Liaw . I'm not sure he reads this list. Duncan Murdoch On 2024-10-23 1:26 a.m., Stevie Pederson wrote: Hi, It appears there is an OSX-specific bug in the function `randomForest.default()` Going by the source code at https://github.com/cran/random

[R] OSX-specific Bug in randomForest

2024-10-22 Thread Stevie Pederson
Hi, It appears there is an OSX-specific bug in the function `randomForest.default()` Going by the source code at https://github.com/cran/randomForest/blob/master/R/randomForest.default.R the bug is on line 103 If the vector `cutoff` is formed using `cutoff <- rep(1/9, 9)` (line #101) the test on