[mlpack-svn] [MLPACK] #193: Random number generator has fixed seed

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Thu Jan 26 16:47:15 EST 2012


#193: Random number generator has fixed seed
----------------------------------------------------+-----------------------
  Reporter:  pram                                   |        Owner:         
      Type:  enhancement                            |       Status:  closed 
  Priority:  major                                  |    Milestone:         
 Component:  mlpack                                 |   Resolution:  invalid
  Keywords:  Random number generator, mlpack::math  |     Blocking:         
Blocked By:                                         |  
----------------------------------------------------+-----------------------
Changes (by rcurtin):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Use `math::RandomSeed(seed)` to set the seed.  The reason srand() doesn't
 work is because the Random() functions use the Boost random number
 library, which is "immune" to srand, instead preferring its own seeding
 mechanism.

 Documentation
 [http://trac.research.cc.gatech.edu/fastlab/doxygen/namespacemlpack_1_1math.html#c4412776479567b5b330627b783d12f7
 here] (even though it's formatted all weird and colored all wrong... I'm
 working on that...).

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/193#comment:1>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list