Feature

class pmrf.evaluators.Feature(alias: str | Sequence[str] | list[prx.Operator])

Bases: Evaluator

Extracts an RF feature using a string-based alias.

Parses regex patterns to automatically route strings like ‘s11_db’ or ‘amplifier.y21_deg’ to the appropriate Method and Indexing chain.

Initialize the feature evalutor.

Parameters:

alias (str | Sequence[str] | list[prx.Operator]) – A string alias, list of string aliases, or list of other evaluators for the feature.

__call__(model: Model, frequency: Frequency, **kwargs) Array

Evaluate the model response over the specified frequency range.

Parameters:
  • model (Model) – The model instance to evaluate.

  • freq (Frequency) – The frequency object defining the evaluation points.

  • **kwargs (dict) – Additional keyword arguments for the evaluation process.

Returns:

The evaluated model response.

Return type:

jnp.ndarray

op: Operator

The underlying operator created that does the final feature extraction.