JLB-JLB commited on
Commit
9bc57c3
1 Parent(s): d8fefa8
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -33,4 +33,24 @@ configs:
33
  ---
34
  # Dataset Card for "seizure_eeg_train"
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
33
  ---
34
  # Dataset Card for "seizure_eeg_train"
35
 
36
+ ```python
37
+ from datasets import load_dataset
38
+
39
+ dataset_name = "JLB-JLB/seizure_eeg_train"
40
+
41
+ dataset = load_dataset(
42
+ dataset_name,
43
+ split="train",
44
+ )
45
+
46
+ display(dataset)
47
+
48
+ # create train and test/val split
49
+ train_testvalid = dataset.train_test_split(test_size=0.1, shuffle=True, seed=12071998)
50
+ display(train_testvalid)
51
+
52
+
53
+ ```
54
+
55
+
56
  [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)