Bingsu commited on
Commit
751f6b6
1 Parent(s): a826c0e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -1
README.md CHANGED
@@ -48,4 +48,25 @@ The data instances have the following fields:
48
  ### Data Splits
49
  | | train | test |
50
  |---------------|-------|-----:|
51
- | # of examples | 8000 | 2000 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  ### Data Splits
49
  | | train | test |
50
  |---------------|-------|-----:|
51
+ | # of examples | 8000 | 2000 |
52
+
53
+
54
+ ```python
55
+ >>> from datasets import load_dataset
56
+
57
+ >>> dataset = load_dataset("Bingsu/Cat_and_Dog")
58
+ >>> dataset
59
+ DatasetDict({
60
+ train: Dataset({
61
+ features: ['image', 'labels'],
62
+ num_rows: 8000
63
+ })
64
+ test: Dataset({
65
+ features: ['image', 'labels'],
66
+ num_rows: 2000
67
+ })
68
+ })
69
+
70
+ >>> dataset["train"].features
71
+ {'image': Image(decode=True, id=None), 'labels': ClassLabel(num_classes=2, names=['cat', 'dog'], id=None)}
72
+ ```