finol.evaluation_layer.BenchmarkLoader

class finol.evaluation_layer.BenchmarkLoader(calculate_metric_output, economic_distillation_output)[源代码]

Class to load the benchmarks and perform comparisons.

参数:
  • 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)[源代码]

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

参数:

df (DataFrame) – Benchmark DataFrame containing all baselines.

返回类型:

None

load_benchmark()[源代码]

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

返回:

Dictionary containing benchmark results and model’s results.

返回类型:

Dict[str, Any]