Skip to content

Commit

Permalink
Merge pull request #53 from EdwardGlockner/master
Browse files Browse the repository at this point in the history
fixing for different os
  • Loading branch information
EdwardGlockner authored Mar 6, 2023
2 parents f3fe203 + a34624b commit b9e6f05
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
from sklearn import preprocessing
from imblearn.over_sampling import SMOTE
from sklearn.model_selection import GridSearchCV
import sys
import os

##########################################################
## FIXING PATH

import sys
sys.path.append('.')
sys.path.append(str(sys.path[0][:-14]))
dirname = os.getcwd()
sys.path.insert(1, os.path.join(dirname, "general_classes"))

##########################################################
## LOCAL PACKAGES

from general_classes import *
from general_classes import DataPreparation

##########################################################
## GLOBALS
Expand Down Expand Up @@ -80,4 +82,4 @@ def predicting():

if __name__ == "__main__":
# training()
predicting()
predicting()

0 comments on commit b9e6f05

Please sign in to comment.