mars0i / popco2

Cultural transmission with analogy biases.
GNU General Public License v3.0
3 stars 0 forks source link

Inefficiency in choice of propositions to utter #19

Open mars0i opened 10 years ago

mars0i commented 10 years ago

in popco.communic.speak, choose-propn-ids-to-say calls worth-saying-ids to create a list of propositions that the person is allowed to say, because they're not masked, they're allowed to be uttered at all, and because a random number is less than the absolute value of their activations. Then choose-propn-ids-to-say samples from whatever propositions pass all of these tests. Is this the most efficient method? Is it really necessary to calculate all possible propositions for uttering before sampling from them? Usually, only a single proposition will be sampled. Further, worth-saying-ids loops through every proposition, even if it's not one that could possibly be uttered. The ones that have a zero value after the filtering process get ignored, but still, the code ends up checking them anyway--and generates a random number for each.