search for: gwblack001

Displaying 8 results from an estimated 8 matches for "gwblack001".

2018 Mar 04
2
Random Seed Location
...n1 + unclass(Sys.time()) / 300) %% 1) if(is.null(seed)) ## there was none, initially rm( ".Random.seed", envir = .GlobalEnv, inherits = FALSE) else # reset assign(".Random.seed", seed, envir = .GlobalEnv, inherits = FALSE) /Henrik On Sun, Mar 4, 2018 at 1:40 PM, Gary Black <gwblack001 at sbcglobal.net> wrote: > Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded. > > Best regards, > Gary > > Sent from my iPad > >> On Mar 4, 201...
2018 Feb 27
0
Random Seed Location
...m number generation to be safe. Cheers, Bert 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 Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> wrote: > Hi all, > > For some odd reason when running na?ve bayes, k-NN, etc., I get slightly > different results (e.g., error rates, classification probabilities) from > run > to run even though I am using the same random seed. > > Nothing else (input-...
2018 Mar 04
0
Random Seed Location
...save <- .Random.seed > rnorm(1) [1] 0.6706031 > .Random.seed <- save > rnorm(1) [1] -0.4194403 If .Random.seed were the complete state, the 2nd and 3rd rnorm results would be the same. Duncan Murdoch > > /Henrik > > On Sun, Mar 4, 2018 at 1:40 PM, Gary Black <gwblack001 at sbcglobal.net> wrote: >> Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded. >> >> Best regards, >> Gary >> >> Sent from my iPad &gt...
2018 Feb 26
3
Random Seed Location
Hi all, For some odd reason when running na?ve bayes, k-NN, etc., I get slightly different results (e.g., error rates, classification probabilities) from run to run even though I am using the same random seed. Nothing else (input-wise) is changing, but my results are somewhat different from run to run. The only randomness should be in the partitioning, and I have set the seed before this
2018 Mar 04
3
Random Seed Location
On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> wrote: (Sorry to be a bit slow responding.) You have not supplied a complete example, which would be good in this case because what you are suggesting could be a serious bug in R or a package. Serious journals require reproducibility these days. For example, JSS is very cl...
2018 Mar 04
0
Random Seed Location
...advise! I will move the location of the set.seed() command to after all packages have been installed and loaded. Best regards, Gary Sent from my iPad > On Mar 4, 2018, at 12:18 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: > > On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> > wrote: > > (Sorry to be a bit slow responding.) > > You have not supplied a complete example, which would be good in this case because what you are suggesting could be a serious bug in R or a package. Serious journals require reproducibility these days. For e...
2018 Mar 05
1
Random Seed Location
...ndom.seed' for resetting it. Would a start be to implement preserveRandomSeed() for supported RNGkind():s and give an informative warning in other cases? /Henrik > > Duncan Murdoch > > > >> >> /Henrik >> >> On Sun, Mar 4, 2018 at 1:40 PM, Gary Black <gwblack001 at sbcglobal.net> >> wrote: >>> >>> Thank you, everybody, who replied! I appreciate your valuable advise! I >>> will move the location of the set.seed() command to after all packages have >>> been installed and loaded. >>> >>> Best re...
2018 Feb 24
3
Regression Tree Questions
Hi All, I'm a newbie and have two questions. Please pardon me if they are very basic. 1. I'm using a regression tree to predict the selling prices of 10 new records (homes). The following code is resulting in an error message: pred <- predict(model, newdata = outOfSample[, -6]) The error message is: Error in model.frame.default(Terms, newdata, na.action = na.action, xlev =