finol.evaluation_layer.BenchmarkLoader

class finol.evaluation_layer.BenchmarkLoader(calculate_metric_output, economic_distillation_output)[source]

Class to load the benchmarks and perform comparisons.

Parameters:
  • calculate_metric_output (Dict) – Dictionary containing output from function calculate_metric().

  • economic_distillation_output (Dict) – Dictionary containing output from function economic_distillation().

Methods

find_top_5_baselines(df)

Find the top 5 baselines based on the provided Benchmark DataFrame.

load_benchmark()

Load benchmark data and update final profit results with model metrics.

find_top_5_baselines(df)[source]

Find the top 5 baselines based on the provided Benchmark DataFrame.

Parameters:

df (DataFrame) – Benchmark DataFrame containing all baselines.

Return type:

None

load_benchmark()[source]

Load benchmark data and update final profit results with model metrics.

Returns:

Dictionary containing benchmark results and model’s results.

Return type:

Dict[str, Any]