Rename

This extender just passes the inputs to the outputs without any modification.

It is used to rename targets.

For someone who wants to understand how extenders work or wants to implement their own extender, this is the best point to start, as it is the simplest extender possible.

It is also very useful for testing and debugging.

Installation

To install this extender along with the metatrain package, run:

pip install metatrain[extender-rename]

where the square brackets indicate that you want to install the optional dependencies required for the rename extender.

Extender hyperparameters

The default hyperparameters for this extender are:

rename:
  inputs: null
  outputs: null

and here is the documentation for each hyperparameter:

Hypers.inputs: str | list[str] | None = None

The names of the inputs to be passed to the outputs.

If None, they will be set as mtt::extender_aux::rename::{output_name.replace('mtt::', '')} for each output name.

Hypers.outputs: str | list[str] | None = None

The names of the outputs to be produced by the extender.

References