Chandan Singh commited on
Commit
191ab1f
1 Parent(s): eb69dd7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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=['is_recid'])
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['is_recid'].values
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
  ```