bionic icon indicating copy to clipboard operation
bionic copied to clipboard

Support dynamic multiplicity

Open jqmp opened this issue 6 years ago • 0 comments
trafficstars

Currently the only way to create multiplicity is by setting fixed values with builder.assign or builder.set. This means the number of values can't depend on other values in the system. However, there are many cases where we'd like to generate a range of values dynamically.

For example, we might want to dynamically generate a parameter range:

@builder
@bn.output_sequence
def alpha(min_alpha, max_alpha, n_alpha_samples):
    return np.linspace(min_alpha, max_alpha, n_alpha_samples)

This will probably require some substantial architectural changes.

jqmp avatar Oct 30 '19 19:10 jqmp