Removing additive contributions¶
- metatrain.utils.additive.remove.remove_additive(systems: List[System], targets: Dict[str, TensorMap], additive_model: Module, target_info_dict: Dict[str, TargetInfo]) Dict[str, TensorMap] [source]¶
Remove an additive contribution from the training targets.
- Parameters:
- Returns:
The updated targets, with the additive contribution removed.
- Return type:
- metatrain.utils.additive.remove.get_remove_additive_transform(additive_models: List[Module], target_info_dict: Dict[str, TargetInfo]) Callable [source]¶
Get a function that removes the additive contributions from the targets.
- Parameters:
- Returns:
A function that takes in systems, targets and extra data, and returns the systems, updated targets and extra data.
- Return type: