nirs4all.pipeline.config.component_serialization module

nirs4all.pipeline.config.component_serialization.serialize_component(obj: Any) → Any[source]

Return something that json.dumps can handle.

Normalizes all syntaxes to canonical form for hash-based uniqueness. All instances serialize to their internal module paths with only non-default parameters. Descriptive pipeline strings remain literal; constructor arguments retain reference normalization. Live objects still normalize in either position.

nirs4all.pipeline.config.component_serialization.unknown_parameters_message(component: Any, names: Any, *, injected: frozenset[str] = frozenset({})) → str | None[source]

Describe constructor parameters component does not accept, or None.

A component that takes **kwargs accepts every name. injected names are runtime hints a builder may ignore (e.g. input_shape).