Datasets:
Add train/test split structure with README
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- README.md +98 -0
- test/cats/cats_00010.jpg +3 -0
- test/cats/cats_00016.jpg +3 -0
- test/cats/cats_00017.jpg +3 -0
- test/cats/cats_00019.jpg +3 -0
- test/cats/cats_00031.jpg +3 -0
- test/cats/cats_00046.jpg +3 -0
- test/cats/cats_00056.jpg +3 -0
- test/cats/cats_00057.jpg +3 -0
- test/cats/cats_00061.jpg +3 -0
- test/cats/cats_00066.jpg +3 -0
- test/cats/cats_00067.jpg +3 -0
- test/cats/cats_00068.jpg +3 -0
- test/cats/cats_00069.jpg +3 -0
- test/cats/cats_00070.jpg +3 -0
- test/cats/cats_00076.jpg +3 -0
- test/cats/cats_00077.jpg +3 -0
- test/cats/cats_00079.jpg +3 -0
- test/cats/cats_00083.jpg +3 -0
- test/cats/cats_00085.jpg +3 -0
- test/cats/cats_00094.jpg +3 -0
- test/cats/cats_00096.jpg +3 -0
- test/cats/cats_00105.jpg +3 -0
- test/cats/cats_00116.jpg +3 -0
- test/cats/cats_00125.jpg +3 -0
- test/cats/cats_00126.jpg +3 -0
- test/cats/cats_00129.jpg +3 -0
- test/cats/cats_00133.jpg +3 -0
- test/cats/cats_00136.jpg +3 -0
- test/cats/cats_00138.jpg +3 -0
- test/cats/cats_00149.jpg +3 -0
- test/cats/cats_00151.jpg +3 -0
- test/cats/cats_00153.jpg +3 -0
- test/cats/cats_00159.jpg +3 -0
- test/cats/cats_00165.jpg +3 -0
- test/cats/cats_00166.jpg +3 -0
- test/cats/cats_00171.jpg +3 -0
- test/cats/cats_00175.jpg +3 -0
- test/cats/cats_00178.jpg +3 -0
- test/cats/cats_00183.jpg +3 -0
- test/cats/cats_00187.jpg +3 -0
- test/dogs/dogs_00010.jpg +3 -0
- test/dogs/dogs_00016.jpg +3 -0
- test/dogs/dogs_00017.jpg +3 -0
- test/dogs/dogs_00019.jpg +3 -0
- test/dogs/dogs_00031.jpg +3 -0
- test/dogs/dogs_00046.jpg +3 -0
- test/dogs/dogs_00056.jpg +3 -0
- test/dogs/dogs_00057.jpg +3 -0
- test/dogs/dogs_00061.jpg +3 -0
README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
tags:
|
| 6 |
+
- animals
|
| 7 |
+
- computer-vision
|
| 8 |
+
- image-classification
|
| 9 |
+
size_categories:
|
| 10 |
+
- n<1K
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Animals Dataset
|
| 14 |
+
|
| 15 |
+
## Dataset Description
|
| 16 |
+
|
| 17 |
+
This dataset contains images of three animal categories: cats, dogs, and pandas.
|
| 18 |
+
|
| 19 |
+
### Dataset Structure
|
| 20 |
+
|
| 21 |
+
The dataset is organized into training and testing splits:
|
| 22 |
+
|
| 23 |
+
```
|
| 24 |
+
Animals_dataset/
|
| 25 |
+
├── train/
|
| 26 |
+
│ ├── cats/
|
| 27 |
+
│ ├── dogs/
|
| 28 |
+
│ └── panda/
|
| 29 |
+
└── test/
|
| 30 |
+
├── cats/
|
| 31 |
+
├── dogs/
|
| 32 |
+
└── panda/
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
### Dataset Statistics
|
| 36 |
+
|
| 37 |
+
- **Total Images**: 600
|
| 38 |
+
- **Training Images**: 480 (80.0%)
|
| 39 |
+
- **Testing Images**: 120 (20.0%)
|
| 40 |
+
|
| 41 |
+
#### Class Distribution
|
| 42 |
+
|
| 43 |
+
**Training Set:**
|
| 44 |
+
- Cats: 160 images
|
| 45 |
+
- Dogs: 160 images
|
| 46 |
+
- Panda: 160 images
|
| 47 |
+
|
| 48 |
+
**Testing Set:**
|
| 49 |
+
- Cats: 40 images
|
| 50 |
+
- Dogs: 40 images
|
| 51 |
+
- Panda: 40 images
|
| 52 |
+
|
| 53 |
+
### Usage
|
| 54 |
+
|
| 55 |
+
You can load this dataset using the Hugging Face `datasets` library:
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from datasets import load_dataset
|
| 59 |
+
|
| 60 |
+
# Load the entire dataset
|
| 61 |
+
dataset = load_dataset("Melisa13/Animals_dataset")
|
| 62 |
+
|
| 63 |
+
# Access train and test splits
|
| 64 |
+
train_data = dataset['train']
|
| 65 |
+
test_data = dataset['test']
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
Or using custom code:
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
from huggingface_hub import hf_hub_download
|
| 72 |
+
from PIL import Image
|
| 73 |
+
import os
|
| 74 |
+
|
| 75 |
+
# Download a specific file
|
| 76 |
+
file_path = hf_hub_download(
|
| 77 |
+
repo_id="Melisa13/Animals_dataset",
|
| 78 |
+
filename="train/cats/cats_00001.jpg",
|
| 79 |
+
repo_type="dataset"
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
# Load image
|
| 83 |
+
image = Image.open(file_path)
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Dataset Creation
|
| 87 |
+
|
| 88 |
+
This dataset was split using scikit-learn's `train_test_split` with:
|
| 89 |
+
- Test size: 20.0%
|
| 90 |
+
- Random seed: 42
|
| 91 |
+
|
| 92 |
+
### License
|
| 93 |
+
|
| 94 |
+
MIT License
|
| 95 |
+
|
| 96 |
+
### Citation
|
| 97 |
+
|
| 98 |
+
If you use this dataset, please cite it appropriately.
|
test/cats/cats_00010.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00016.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00017.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00019.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00031.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00046.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00056.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00057.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00061.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00066.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00067.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00068.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00069.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00070.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00076.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00077.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00079.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00083.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00085.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00094.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00096.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00105.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00116.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00125.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00126.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00129.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00133.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00136.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00138.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00149.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00151.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00153.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00159.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00165.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00166.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00171.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00175.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00178.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00183.jpg
ADDED
|
Git LFS Details
|
test/cats/cats_00187.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00010.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00016.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00017.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00019.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00031.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00046.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00056.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00057.jpg
ADDED
|
Git LFS Details
|
test/dogs/dogs_00061.jpg
ADDED
|
Git LFS Details
|