Skip to content

Commit

Permalink
fix: typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcanay committed Feb 23, 2024
1 parent eafe8a4 commit db83156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index/visualisation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict
from typing import Dict, List
from enum import Enum

import numpy as np
Expand Down Expand Up @@ -36,7 +36,7 @@ def get_cohort_specific_color_code(cohort_name: str):
return None


def enrichment_plot(accuracies: Dict[str, [float]], title, save_plot=False, save_dir="resources/results/plots"):
def enrichment_plot(accuracies: Dict[str, List[float]], title, save_plot=False, save_dir="resources/results/plots"):
lengths = set(len(lst) for lst in accuracies.values())
if len(lengths) != 1:
raise ValueError("Accuracy scores of models should be of the same length!")
Expand Down

0 comments on commit db83156

Please sign in to comment.