Preetham22 commited on
Commit
7a0a9dd
·
1 Parent(s): fb6c490

modify path in train script

Browse files
Files changed (1) hide show
  1. src/train.py +3 -4
src/train.py CHANGED
@@ -22,10 +22,6 @@ from torch.optim import Adam # PyTorch core utility for model training,
22
  from sklearn.metrics import accuracy_score, f1_score, classification_report # Evaluation metrics
23
  from sklearn.model_selection import StratifiedShuffleSplit
24
 
25
-
26
- from src.triage_dataset import TriageDataset # Dataset Class
27
- from src.multimodal_model import MediLLMModel # Mutlimodal Model
28
-
29
  # Setup base path
30
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
31
  # Automatically add Project root to python import path
@@ -33,6 +29,9 @@ base_dir = os.path.dirname(os.path.dirname(__file__))
33
  if base_dir not in sys.path:
34
  sys.path.append(base_dir)
35
 
 
 
 
36
 
37
  def load_config(mode):
38
  config_path = os.path.join(base_dir, "config", "config.yaml")
 
22
  from sklearn.metrics import accuracy_score, f1_score, classification_report # Evaluation metrics
23
  from sklearn.model_selection import StratifiedShuffleSplit
24
 
 
 
 
 
25
  # Setup base path
26
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
27
  # Automatically add Project root to python import path
 
29
  if base_dir not in sys.path:
30
  sys.path.append(base_dir)
31
 
32
+ from src.triage_dataset import TriageDataset # Dataset Class
33
+ from src.multimodal_model import MediLLMModel # Mutlimodal Model
34
+
35
 
36
  def load_config(mode):
37
  config_path = os.path.join(base_dir, "config", "config.yaml")