Skip to content

Commit ee65c2e

Browse files
committed
datasets path changed
1 parent dc6e27e commit ee65c2e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

__pycache__/explain.cpython-37.pyc

27 Bytes
Binary file not shown.

explain.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import os
2-
#
3-
# path= os.path.join(os.getcwd(),"explainx/lib")
2+
import sys
3+
from pathlib import Path
44

55

6-
from pathlib import Path
76
path= Path(__file__).parent.absolute()
7+
path_dataset= os.path.join(path, "datasets")
88
path= os.path.join(path, "lib")
9-
import sys
9+
1010
sys.path.append(path)
11-
print(path)
11+
1212

1313
from imports import *
1414
from dashboard import *
@@ -65,7 +65,7 @@ def dataset_boston(self):
6565

6666

6767
def dataset_heloc(self):
68-
dataset= pd.read_csv("explainx/datasets/heloc_dataset.csv")
68+
dataset= pd.read_csv(path_dataset+"/heloc_dataset.csv")
6969

7070
map_riskperformance= {"RiskPerformance": {"Good":1, "Bad":0}}
7171
dataset.replace(map_riskperformance, inplace=True)

0 commit comments

Comments
 (0)