We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6e27e commit ee65c2eCopy full SHA for ee65c2e
__pycache__/explain.cpython-37.pyc
27 Bytes
explain.py
@@ -1,14 +1,14 @@
1
import os
2
-#
3
-# path= os.path.join(os.getcwd(),"explainx/lib")
+import sys
+from pathlib import Path
4
5
6
-from pathlib import Path
7
path= Path(__file__).parent.absolute()
+path_dataset= os.path.join(path, "datasets")
8
path= os.path.join(path, "lib")
9
-import sys
+
10
sys.path.append(path)
11
-print(path)
12
13
from imports import *
14
from dashboard import *
@@ -65,7 +65,7 @@ def dataset_boston(self):
65
66
67
def dataset_heloc(self):
68
- dataset= pd.read_csv("explainx/datasets/heloc_dataset.csv")
+ dataset= pd.read_csv(path_dataset+"/heloc_dataset.csv")
69
70
map_riskperformance= {"RiskPerformance": {"Good":1, "Bad":0}}
71
dataset.replace(map_riskperformance, inplace=True)
0 commit comments