Derived
- class pmrf.models.adapters.derived.Derived(operands: tuple[Any, dict[str, Any]], *, name: str | None = None, metadata: Any = None, fn: Callable[[...], Model])
Bases:
AbstractBuilderA model computed by a function from a base and new named parameters.
Built by
derived(), which documents the contract. The base and the new parameters are held once, asoperands = (base, new), andfn(base, **new)is called on their unwrapped values whenever the model is used. Parameter names see through this wrapper: the base’s names are unchanged and each new parameter is named by its keyword.- operands: tuple[Any, dict[str, Any]]
The base, and the new parameters keyed by keyword.