Skip to content

Commit

Permalink
Try specifying a specific random engine
Browse files Browse the repository at this point in the history
Maybe that's why some CI builds fail...
  • Loading branch information
ojwb committed Jul 1, 2022
1 parent eea885d commit b73534a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xapian-letor/ranker/ranker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ Ranker::xavier_initialisation(int feature_cnt)
// Construct a trivial random generator engine:
// 469382313 is a random number for which we are getting the best
// performance of letor against standard benchmark datasets.
default_random_engine generator(469382313);
mt19937 generator(469382313);
normal_distribution<double> distribution(0.0,
sqrt(2.0 / (1 + feature_cnt)));
vector<double> new_parameters;
Expand Down

0 comments on commit b73534a

Please sign in to comment.