"""This function can be overwritten to train the feature projector.
If you do this, please also register the function by calling this base class constructor
and enabling the training by 'requires_projector_training = True'.
The training function gets two parameters:
- training_features: A list of *extracted* features that can be used for training the extractor.
- projector_file: The file to write. This file should be readable with the 'load_projector' function (see above).
"""
raiseNotImplementedError("Please overwrite this function in your derived class, or unset the 'requires_projector_training' option in the constructor.")
defload_projector(self,projector_file):
"""Loads the parameters required for feature projection from file.
This function usually is only useful in combination with the 'train_projector' function (see above).
In this base class implementation, it does nothing.
Please register 'performs_projection = True' in the constructor to enable this function.