mirror of https://github.com/davisking/dlib.git
Made spec more clear
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403576
This commit is contained in:
parent
f505d4d954
commit
93971a811a
|
@ -41,7 +41,7 @@ namespace dlib
|
||||||
|
|
||||||
|
|
||||||
At the end of the for loop you will have your random subset of 1000 samples. And by
|
At the end of the for loop you will have your random subset of 1000 samples. And by
|
||||||
random I mean that each of the 1000000 data samples has an equal change of ending
|
random I mean that each of the 1000000 data samples has an equal chance of ending
|
||||||
up in the rand_subset object.
|
up in the rand_subset object.
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,6 +62,11 @@ namespace dlib
|
||||||
know that the rand_subset would include it into the random subset. Otherwise,
|
know that the rand_subset would include it into the random subset. Otherwise,
|
||||||
we can just call the empty add().
|
we can just call the empty add().
|
||||||
|
|
||||||
|
|
||||||
|
Finally, note that the random_subset_selector uses a deterministic pseudo-random
|
||||||
|
number generator under the hood. Moreover, the default constructor always seeds
|
||||||
|
the random number generator in the same way. So unless you call set_seed()
|
||||||
|
each instance of the random_subset_selector will function identically.
|
||||||
!*/
|
!*/
|
||||||
public:
|
public:
|
||||||
typedef T type;
|
typedef T type;
|
||||||
|
|
Loading…
Reference in New Issue