mertkarabacak
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -26,12 +26,15 @@ x1 = load_dataset("mertkarabacak/DMVO-mRS", data_files="gradio_train_data.csv",
|
|
26 |
x1 = pd.DataFrame(x1['train'])
|
27 |
x1 = x1.iloc[:, 1:]
|
28 |
|
|
|
|
|
29 |
#Read validation data.
|
30 |
|
31 |
x1_valid = load_dataset("mertkarabacak/DMVO-mRS", data_files="gradio_validation_data.csv", use_auth_token = HF_TOKEN)
|
32 |
x1_valid = pd.DataFrame(x1_valid['train'])
|
33 |
x1_valid = x1_valid.iloc[:, 1:]
|
34 |
|
|
|
35 |
|
36 |
#Define feature names.
|
37 |
f1_names = list(x1.columns)
|
@@ -39,7 +42,7 @@ f1_names = [f1.replace('__', ' - ') for f1 in f1_names]
|
|
39 |
f1_names = [f1.replace('_', ' ') for f1 in f1_names]
|
40 |
|
41 |
#Prepare training data for the outcome 1.
|
42 |
-
y1= x1.pop('OUTCOME')
|
43 |
|
44 |
#Prepare validation data for the outcome 1.
|
45 |
y1_valid = x1_valid.pop('OUTCOME')
|
|
|
26 |
x1 = pd.DataFrame(x1['train'])
|
27 |
x1 = x1.iloc[:, 1:]
|
28 |
|
29 |
+
print(x1.columns)
|
30 |
+
|
31 |
#Read validation data.
|
32 |
|
33 |
x1_valid = load_dataset("mertkarabacak/DMVO-mRS", data_files="gradio_validation_data.csv", use_auth_token = HF_TOKEN)
|
34 |
x1_valid = pd.DataFrame(x1_valid['train'])
|
35 |
x1_valid = x1_valid.iloc[:, 1:]
|
36 |
|
37 |
+
print(x1_valid.columns)
|
38 |
|
39 |
#Define feature names.
|
40 |
f1_names = list(x1.columns)
|
|
|
42 |
f1_names = [f1.replace('_', ' ') for f1 in f1_names]
|
43 |
|
44 |
#Prepare training data for the outcome 1.
|
45 |
+
y1 = x1.pop('OUTCOME')
|
46 |
|
47 |
#Prepare validation data for the outcome 1.
|
48 |
y1_valid = x1_valid.pop('OUTCOME')
|