Datasets:
Chandan Singh
commited on
Commit
•
191ab1f
1
Parent(s):
eb69dd7
Update README.md
Browse files
README.md
CHANGED
@@ -32,7 +32,7 @@ from datasets import load_dataset
|
|
32 |
|
33 |
dataset = load_dataset("imodels/diabetes-readmission")
|
34 |
df = pd.DataFrame(dataset['train'])
|
35 |
-
X = df.drop(columns=['
|
36 |
y = df['readmitted'].values
|
37 |
```
|
38 |
|
@@ -54,6 +54,6 @@ Evaluate:
|
|
54 |
```
|
55 |
df_test = pd.DataFrame(dataset['test'])
|
56 |
X_test = df.drop(columns=['readmitted'])
|
57 |
-
y_test = df['
|
58 |
print('accuracy', np.mean(m.predict(X_test) == y_test))
|
59 |
```
|
|
|
32 |
|
33 |
dataset = load_dataset("imodels/diabetes-readmission")
|
34 |
df = pd.DataFrame(dataset['train'])
|
35 |
+
X = df.drop(columns=['readmitted'])
|
36 |
y = df['readmitted'].values
|
37 |
```
|
38 |
|
|
|
54 |
```
|
55 |
df_test = pd.DataFrame(dataset['test'])
|
56 |
X_test = df.drop(columns=['readmitted'])
|
57 |
+
y_test = df['readmitted'].values
|
58 |
print('accuracy', np.mean(m.predict(X_test) == y_test))
|
59 |
```
|