replace (pmrf.replace)
- pmrf.replace(obj: Any, /, **changes: Any) Any
Returns a copy of a dataclass, such as a model or parameter, with fields replaced.
This is
dataclasses.replace(): it acts on the fields of one object and runs its constructor, but checks nothing a field’s type does not. To change parameters by name, including inside nested models, usepmrf.update().