Metrics¶
BaseMetric¶
-
class
causal_world.metrics.BaseMetric(name)[source]¶ -
__init__(name)[source]¶ The metric base to be used for any metric to calculate over the episodes evaluated.
- Parameters
name – (str) metric name.
-
MeanAccumulatedRewardMetric¶
-
class
causal_world.metrics.MeanAccumulatedRewardMetric[source]¶ -
__init__()[source]¶ The MeanAccumulatedRewardMetric to be used to calculate the mean accumlated reward over all episodes processed.
-
MeanFullIntegratedFractionalSuccess¶
-
class
causal_world.metrics.MeanFullIntegratedFractionalSuccess[source]¶ -
__init__()[source]¶ The MeanFullIntegratedFractionalSuccess to be used to calculate the mean of sum of fractional success over all episodes processed.
-
get_metric_score()[source]¶ - Returns
(tuple) the mean of the metric score, the std of the metric score.
-
MeanLastFractionalSuccess¶
-
class
causal_world.metrics.MeanLastFractionalSuccess[source]¶ -
__init__()[source]¶ The MeanLastFractionalSuccess to be used to calculate the mean last fractional success over all episodes processed.
-
get_metric_score()[source]¶ - Returns
(tuple) the mean of the metric score, the std of the metric score.
-
MeanLastIntegratedFractionalSuccess¶
-
class
causal_world.metrics.MeanLastIntegratedFractionalSuccess[source]¶ -
__init__()[source]¶ The MeanLastIntegratedFractionalSuccess to be used to calculate the mean over last 20 fractional successes over all episodes processed.
-
get_metric_score()[source]¶ - Returns
(tuple) the mean of the metric score, the std of the metric score.
-