similar to: seed

Displaying 20 results from an estimated 290 matches similar to: "seed"

2010 Aug 18
4
dimnames
Hi everybody, I wanted to name a column vector (a variable). This is what I did : try<-matrix(1:4,nrow=4,ncol=1) attr(try,"dimnames")<-list(NULL,"true value") Is it OK ? Thanks for your help, Jimmy [[alternative HTML version deleted]]
2010 Apr 26
3
Sweave
Hi everybody, I wanted to use Sweave but I do not have the Latex package: "LaTeX Error: File 'Sweave.sty' not found." I cannot find it with MiKTeX :-( Can somebody help me ? Thanks a lot, Jimmy [[alternative HTML version deleted]]
2010 Aug 24
3
How to obtain seed after generating random number?
Dear all, I was doing an experiment to disprove some theory therefore performing lot of random simulation. Goal is to show the audience that although something has very rare chance to occur but it doesn't mean that event would be impossible. In this case after getting that rare event I need to show that same scenario for multiple times to explain other audience. Hence I need to somehow
2005 Dec 31
6
habtm recursion via destroy_without_callbacks
I am having a problem with two models that each have a HABTM relationship to the other. For example: CREATE TABLE people (id INT, name TEXT); CREATE TABLE teams (id INT, name TEXT); CREATE TABLE people_teams (person_id INT, team_id INT); The person model has: has_and_belongs_to_many :teams And the team model has: has_and_belongs_to_many :people The trouble comes when trying to destroy
2010 May 18
2
Sweave counter
Dear R users, I am using the Sweave package and I am doing some MCMC. I have a loop function for my MCMC. Every 100 iterations, I want the number of iterations already done to appear on my screen (but not on the final document). Is that possible ? Usually I can rely on > if (i%%100==0) cat(i, "\n") but not when using Sweave. Thanks for your help, Jimmy [[alternative HTML
2010 Jun 02
2
Sweave glm.fit
Dear R users, After running Sweave, this is what I get : Warning messages: 1: glm.fit: algorithm did not converge 2: glm.fit: algorithm did not converge There is no glm.fit function in my code. Where does it come from ? From Sweave ? From system.time ? Thanks for your help, Jimmy [[alternative HTML version deleted]]
2018 Feb 02
6
Allowing non-root users to reboot a workstation
I would like to be able to allow regular users that don't have admin privileges to be able to reboot their workstation. (they're software developers so rebooting their workstation doesn't affect anybody else) I tried changing the ownership of /sbin/reboot and /sbin/shutdown to root:users and permissions to 550, but that didn't work - it's still asking for root privileges.
2010 Feb 04
1
How to choose "seed" in set.seed(seed, ...)?
Greetings. I understand that to generate distinct sequences of random numbers in R one can initialize the calculation of each sequence by calling the set.seed() function with a distinct value for "seed" the (integer) first argument to the function. I'd like to know if there are any guidelines or best practices for choosing "seed". I.e., is it OK just to choose seed as
2012 Nov 02
1
An idea: Extend mclapply's mc.set.seed with an initial seed value?
Hello, Have been thinking that sometimes users may want each process to initialize its random seed with a specific value rather then the current seed. This could be keyed off depending whether mc.set.seed is logical, preserving the current behaviour, or numerical, using the value in a call to set.seed. Does this make sense? If you wonder how I came up with the idea: I spent a couple of hours
2003 Apr 01
0
Answer to .Random.seed vs. set.seed
Here is the answer to the .Random.seed vs. set.seed question: On Tue, 1 Apr 2003, Erin Hodgess wrote: > Dear R People: > > What is the difference betwween > .Random.seed <<- seed > > vs. > set.seed > > please? 1) In the first you have to know a suitable value for `seed', and that's far from easy, whereas in the second you can supply a number in
2011 Aug 04
1
How to seed the R random number generator in C (standalone) with an instance of .Random.seed
hello all, I use the R standalone math library in my own C program, and the default R random number generator can be seeded with set_seed(const unsigned int, const unsigned int). How could I seed the RNG with an instance of .Random.seed ? I would need this or a similar workaround for debugging purposes. More precisely, I use the default R random number generator to sample from various
2013 Jan 23
3
How to construct a valid seed for l'Ecuyer's method with given .Random.seed?
Dear expeRts, I struggle with the following problem using snow clusters for parallel computing: I would like to specify l'Ecuyer's random number generator. Base R creates a .Random.seed of length 7, the first value indicating the kind fo random number generator. I would thus like to use the components 2 to 7 as the seed for l'Ecuyer's random number generator. By doing so, I
2013 Apr 21
5
Where to find info about seed.rb, db:seed functionality?
There is no any mention about it neither in API nor in Guide. How to use these features? The only gist with two sentences is in db/seed.rb file. That''s really not enough. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails
2008 Feb 13
3
Best way to reset random seed when using set.seed() in a function?
Hi, this is related to a question just raised on Bioconductor where one function sets the random seed internally but never resets it, which results in enforced down streams random samples being deterministic. What is the best way to reset the random seed when you use set.seed() within a function? Is it still to re-assign '.Random.seed' in the global environment as following example
2013 Jan 22
2
Length of seed for l'Ecuyer-CMRG
Dear expeRts, ./src/library/base/man/Random.Rd says that L'Ecuyer requires a seed of length 6. ./src/library/parallel/man/RngStream.Rd also mentions this, but only in the text part; In the "Arguments"-part, it says that "seed" has to be of length 7 Also: ,---- | > RNGkind("L'Ecuyer-CMRG") | > length(.Random.seed) | [1] 7 `---- Is the docu old? Some
2012 Jun 22
0
rake db:seed on EC2
Hey guys, How would one run the equivalent of rake db:seed on their EC2 instance? I added this to my deploy.rb file: namespace :deploy do desc "Populates the Production Database" task :seed do puts "\n\n=== Populating the Production Database! ===\n\n" run "cd #{current_path}; rake db:seed RAILS_ENV=production" end end But when running cap
2005 Nov 15
0
http://xenbits.xensource.com/xen-2.0-testing.hg" repository (seed archive) isn''t working
REPRO: - download the seed from : "http://xenbits.xensource.com/xen-2.0-testing.hg" repository (seed archive<http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-2.0-testing.hg.tar.gz> ) http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-2.0-testing.hg.tar.gz - mkdir xen - cd xen - tar -zxvf ~/downloads/xen-2.0-testing.hg.tar.gz - cd xen-2.0-testing.hg.tar.gz -
2008 Apr 15
1
disturbing seed dependence in optim L-BFGS-B method
The the use of optim with the L-BFGS-B method for the following simple function gives erroneous results. Any help appreciated! Best, Bob Reilly # Code: V=function(p){ p1=p[1];p2=p[2] y=p1*p2-.4*(p1+p2) return(-y)} p=c(.2,.2) # p=c(.8,.8) max=optim(p,V,method = "L-BFGS-B",lower=c(0,0),upper=c(1,1)) max1=optim(max$par,V,method = "L-BFGS-B",lower=c(0,0),upper=c(1,1))
2005 Aug 16
2
specify seed for Random Number Generator
I need to generate 100 I.I.D samples from an exponential distribution. I use rexp(100,parameter). Is there anyway to specify a seed to determine the first input for the uniform random number generator used to generate these exponentials? -Dhiren
2013 Jan 27
1
set.seed()
Hi, I am learning R. I've been using set.seed() for a while, but without actually understanding the significance of the "number" we put in the brackets. e.g. set.seed(135) & set.seed(930). Can anyone shed some light on this please? -- View this message in context: http://r.789695.n4.nabble.com/set-seed-tp4656788.html Sent from the R help mailing list archive at Nabble.com.