admin commited on
Commit
ba25917
1 Parent(s): 0a13c8d

upd tutorial in md

Browse files
Files changed (1) hide show
  1. README.md +7 -2
README.md CHANGED
@@ -9,10 +9,15 @@ license: mit
9
  ```
10
  from datasets import load_dataset
11
 
12
- data = load_dataset("george-chou/Pima", split="train")
 
13
 
14
- for item in data:
15
  print(item)
 
 
 
 
16
  ```
17
 
18
  ## Maintenance
 
9
  ```
10
  from datasets import load_dataset
11
 
12
+ trainset = load_dataset("george-chou/Pima", split="train[:80%]")
13
+ testset = load_dataset("george-chou/Pima", split="train[-20%:]")
14
 
15
+ for item in trainset:
16
  print(item)
17
+
18
+ for item in testset:
19
+ print(item)
20
+
21
  ```
22
 
23
  ## Maintenance