m7mdal7aj commited on
Commit
a73ed42
1 Parent(s): 3bcd977

Update my_model/tabs/finetuning_evaluation.py

Browse files
my_model/tabs/finetuning_evaluation.py CHANGED
@@ -6,12 +6,13 @@ from ast import literal_eval
6
  from typing import Union, List
7
 
8
  class KBVQAEvaluator:
9
- def __init__(self, data_path: str, use_fuzzy: bool = False):
10
  """
11
  Initialize the VQA Processor with the dataset and configuration settings.
12
  """
 
13
  self.stemmer = PorterStemmer()
14
- self.df = pd.read_excel(data_path)
15
  self.scores_df = pd.read_excel(data_path, sheet_name="Scores")
16
  self.df = pd.read_excel(data_path, sheet_name="Main Data")
17
  self.use_fuzzy = use_fuzzy
 
6
  from typing import Union, List
7
 
8
  class KBVQAEvaluator:
9
+ def __init__(self, use_fuzzy: bool = False):
10
  """
11
  Initialize the VQA Processor with the dataset and configuration settings.
12
  """
13
+ self.use_fuzzy = False
14
  self.stemmer = PorterStemmer()
15
+ self.df = pd.read_excel('evaluation_results_final.xlsx')
16
  self.scores_df = pd.read_excel(data_path, sheet_name="Scores")
17
  self.df = pd.read_excel(data_path, sheet_name="Main Data")
18
  self.use_fuzzy = use_fuzzy