rxn.metrics.forward_metrics.ForwardMetrics
- class rxn.metrics.forward_metrics.ForwardMetrics(gt_products, predicted_products)[source]
Bases:
MetricsCalculatorClass to compute common metrics for forward models, starting from files containing the ground truth and predictions.
Note: all files are expected to be standardized (canonicalized, sorted, etc.).
- Parameters
gt_products (
Iterable[str]) –predicted_products (
Iterable[str]) –
- __init__(gt_products, predicted_products)[source]
- Parameters
gt_products (
Iterable[str]) –predicted_products (
Iterable[str]) –
Methods
__init__(gt_products, predicted_products)- param gt_products
from_metrics_files(metrics_files)Build the instance from the MetricsFiles object.
from_raw_files(gt_products_file, ...)- param gt_products_file
Calculate the metrics.
- classmethod from_metrics_files(metrics_files)[source]
Build the instance from the MetricsFiles object.
- Parameters
metrics_files (
MetricsFiles) –- Return type