Search found 6 matches

by mesterharm
Fri Jul 31, 2015 8:20 pm
Forum: SMILE
Topic: Which Sampling Algorithm
Replies: 5
Views: 8783

Re: Which Sampling Algorithm

EPIS uses a seed based on outputs from time() and clock() functions.
That's great; it's easy to ensure that clock() will give me different seeds.

Thanks for the quick reply.

Chris
by mesterharm
Fri Jul 31, 2015 6:07 pm
Forum: SMILE
Topic: Which Sampling Algorithm
Replies: 5
Views: 8783

Re: Which Sampling Algorithm

Hello, I'd like to use EPIS since it gives the best performance in my limited experiments. (Twice as fast as likelyhood weighting.) However, I want to run it on different machines and average the results. For this I need to know that the seeds used are different. I'm guessing the seed used is based ...
by mesterharm
Thu Jul 30, 2015 6:08 pm
Forum: SMILE
Topic: Which Sampling Algorithm
Replies: 5
Views: 8783

Re: Which Sampling Algorithm

Hello, I've partially answered my own question. One needs to set evidence to get the sampling to give different answers. Setting evidence gives me different answers for 1 and 6 but 3 and 5 are still the same. Anyway based on skimming some of the literature, it seems that algorithm 3, which I assume ...
by mesterharm
Wed Jul 29, 2015 4:58 pm
Forum: SMILE
Topic: Which Sampling Algorithm
Replies: 5
Views: 8783

Which Sampling Algorithm

Hello, I'm trying to figure out which sampling algorithm to use but I'm getting some confusing results. I'm using constants.h to figure out which algorithm is used by using setBayesianAlgorithm. First off I need to use srand() to set the seed, so I can't use 7 and 8 since they seem to use their own ...
by mesterharm
Mon Jun 15, 2015 6:04 pm
Forum: SMILE
Topic: srand
Replies: 2
Views: 6817

Re: srand

I would avoid multithreading with sampling. Depending on the sampling algorithm selected, it may use built-in rand() function (and your call to srand() will have an effect), or a custom random generator which is not thread-safe (and is not influenced by seed specified in the stand() call). Thanks, ...
by mesterharm
Fri Jun 12, 2015 3:04 pm
Forum: SMILE
Topic: srand
Replies: 2
Views: 6817

srand

I'm using jSmile and want to do inference on influence diagrams with sampling. I created some jni code to call srand() and that allows me to set a seed. I assume because srand() works that the C++ code for sampling is using rand() to generate random numbers. Does this mean I can't do multithreaded s...