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]