def getModelParams(self, seed):
random.seed(seed)<EOL>scipy.random.seed(seed)<EOL>modelparams = {}<EOL>for param in self.model.freeparams:<EOL><INDENT>pvalue = getattr(self.model, param)<EOL>if isinstance(pvalue, float):<EOL><INDENT>modelparams[param] = random.uniform(<NUM_LIT:0.5>, <NUM_LIT>)<EOL><DEDENT>elif isinstance(pvalue, scipy.ndarray) and pvalue.ndim == <NUM_LIT:1>:<EOL><INDENT>modelparams[param] = scipy.random.dirichlet([<NUM_LIT:6>] * len(pvalue))<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".format(param))<EOL><DEDENT><DEDENT>return modelparams<EOL>
Dict of random model params for random number seed `seed`.