BPt.p.Array.spawn_child#

Array.spawn_child(new_value=None)[source]#

Creates a new instance which shares the same random generator than its parent, is sampled from the same data, and mutates independently from the parentp. If a new value is provided, it will be set to the new instance

Parameters
new_value: anything (optional)

if provided, it will update the new instance value (cannot be used at the same time as new_data).

Returns
Parameter

a new instance of the same class, with same content/internal-model parameters/… Optionally, a new value will be set after creation