rxn.metrics.metrics.round_trip_accuracy

rxn.metrics.metrics.round_trip_accuracy(ground_truth, predictions)[source]

Compute the round-trip accuracy values, split by n-th predictions.

Raises

ValueError – if the list sizes are incompatible, forwarded from get_sequence_multiplier().

Return type

Tuple[Dict[int, float], Dict[int, float]]

Returns

Tuple of Dictionaries of round-trip accuracy “n” values and standard deviation (std_dev) “n” values. Here the standard deviation is the measure of how much the average round-trip accuracy can change from one sample to the other.

Parameters
  • ground_truth (Sequence[TypeVar(T)]) –

  • predictions (Sequence[TypeVar(T)]) –