lir.lrsystems.lrsystems module
- class lir.lrsystems.lrsystems.LRSystem[source]
Bases:
Transformer,ABCGeneral representation of an LR system.
- abstractmethod apply(instances: InstanceData) LLRData[source]
Use the LR system to calculate the LLR data from the instances.
Applies the LR system on a set of instances, optionally with corresponding labels, and returns a representation of the calculated LLR data through the LLRData tuple.
- Parameters:
instances (InstanceData) – Input instances to be processed by this method.
- Returns:
Likelihood-ratio data produced by applying the LR system.
- Return type:
- fit(instances: InstanceData) Self[source]
Fit the LR system on a set of features and corresponding labels.
The number of labels must be equal to the number of instances.
- Parameters:
instances (InstanceData) – Input instances to be processed by this method.
- Returns:
This LR system instance after optional fitting.
- Return type:
Self