neurodsp.sim.update.ParamSampler

class neurodsp.sim.update.ParamSampler(params, samplers, n_samples=None)[source]

Object for sampling parameter definitions.

Parameters:
paramsdict

Parameter definition to create sampler with.

samplersdict

Sampler definitions to update parameters with. Each key should be a callable, a parameter updated function. Each value should be a generator, to sample updated parameter values from.

n_samplesint, optional

The number of parameter iterations to set as max. If None, creates an infinite generator.

Attributes:
indexint

Index of current number of yielded parameter definitions.

yieldergenerator

Generator for sampling the parameter samples.

__init__(params, samplers, n_samples=None)[source]

Initialize parameter sampler object.

Methods

__init__(params, samplers[, n_samples])

Initialize parameter sampler object.

Attributes

base

Alias in base parameters as property attribute.

property base

Alias in base parameters as property attribute.

Examples using neurodsp.sim.update.ParamSampler

Managing Simulation Parameters

Managing Simulation Parameters

Simulating Multiple Signals

Simulating Multiple Signals