rxn.metrics.context_metrics.fraction_of_identical_compounds
- rxn.metrics.context_metrics.fraction_of_identical_compounds(ground_truth, predictions)[source]
Compute the fraction of identical compounds, split by n-th predictions.
- Raises
ValueError – if the list sizes are incompatible, forwarded from get_sequence_multiplier().
- Return type
Dict
[int
,float
]- Returns
Dictionary for the fraction of identical compounds, by top-n.
- Parameters
ground_truth (
Sequence
[str
]) –predictions (
Sequence
[str
]) –