mgyigit commited on
Commit
17c3e5b
·
verified ·
1 Parent(s): 5e429e9

Update src/vis_utils.py

Browse files
Files changed (1) hide show
  1. src/vis_utils.py +5 -5
src/vis_utils.py CHANGED
@@ -38,18 +38,18 @@ def set_colors_and_marks_for_representation_groups(ax):
38
  label.set_text(f"^ {text}")
39
 
40
  def benchmark_plot(benchmark_type, methods_selected, x_metric, y_metric):
41
- if benchmark_type == 'flexible':
42
- # Use general visualizer logic
43
- return general_visualizer_plot(methods_selected, x_metric=x_metric, y_metric=y_metric)
44
- elif benchmark_type == 'similarity':
45
  title = f"{x_metric} vs {y_metric}"
46
- return draw_scatter_plot_similarity(methods_selected, x_metric, y_metric, title)
47
  elif benchmark_type == 'function':
48
  return plot_function_results("./data/function_results.csv", x_metric, y_metric, methods_selected)
49
  elif benchmark_type == 'family':
50
  return plot_family_results("./data/family_results.csv", methods_selected, x_metric, save_path="./plot_images")
51
  elif benchmark_type == "affinity":
52
  return plot_affinity_results("./data/affinity_results.csv", methods_selected, x_metric, save_path="./plot_images")
 
 
 
53
 
54
  def general_visualizer(methods_selected, x_metric, y_metric):
55
  df = pd.read_csv(CSV_RESULT_PATH)
 
38
  label.set_text(f"^ {text}")
39
 
40
  def benchmark_plot(benchmark_type, methods_selected, x_metric, y_metric):
41
+ if benchmark_type == 'similarity':
 
 
 
42
  title = f"{x_metric} vs {y_metric}"
43
+ return plot_similarity_results(methods_selected, x_metric, y_metric, title)
44
  elif benchmark_type == 'function':
45
  return plot_function_results("./data/function_results.csv", x_metric, y_metric, methods_selected)
46
  elif benchmark_type == 'family':
47
  return plot_family_results("./data/family_results.csv", methods_selected, x_metric, save_path="./plot_images")
48
  elif benchmark_type == "affinity":
49
  return plot_affinity_results("./data/affinity_results.csv", methods_selected, x_metric, save_path="./plot_images")
50
+ else:
51
+ # Use general visualizer logic
52
+ return general_visualizer_plot(methods_selected, x_metric=x_metric, y_metric=y_metric)
53
 
54
  def general_visualizer(methods_selected, x_metric, y_metric):
55
  df = pd.read_csv(CSV_RESULT_PATH)