Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
image
imagewidth (px)
150
1.92k
label
class label
2 classes
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
0notumor
End of preview. Expand in Data Studio

🧠 Brain Tumor MRI Dataset

This dataset is designed for machine learning tasks related to brain tumor detection and classification using MRI images. It is suitable for both binary and multiclass classification problems.


πŸ“š Description

This repository contains two configurations:

  • Binary Classification: Tumor vs No Tumor
  • Multiclass Classification: Glioma, Meningioma, Pituitary Tumor, and No Tumor

Each configuration is divided into train and test folders.


πŸ“ Folder Structure

BrainTumorDatasets/
β”œβ”€β”€ binary/
β”‚ β”œβ”€β”€ train/
β”‚ └── test/
β”œβ”€β”€ multiclass/
β”‚ β”œβ”€β”€ train/
β”‚ └── test/

πŸ“₯ Usage

This dataset is available via the πŸ€— datasets library and can be accessed with just a few lines of code.

🧠 Load Full Dataset

from datasets import load_dataset

# Binary dataset
binary_ds = load_dataset("Cayanaaa/BrainTumorDatasets", name="binary")

# Multiclass dataset
multi_ds = load_dataset("Cayanaaa/BrainTumorDatasets", name="multiclass")

Each dataset is returned as a DatasetDict with predefined train and test splits.

train_data = x_ds["train"]
test_data = x_ds["test"]

πŸ§ͺ Load Specific Split Only

# Load only training data from binary configuration
binary_train = load_dataset("Cayanaaa/BrainTumorDatasets", name="binary", split="train")

# Load only test data from multiclass configuration
multiclass_test = load_dataset("Cayanaaa/BrainTumorDatasets", name="multiclass", split="test")

πŸ”— Source/Credit


dataset_info:
- config_name: binary
  features:
  - name: image
    dtype: image
  - name: label
    dtype:
      class_label:
        names:
          '0': notumor
          '1': tumor
  splits:
  - name: train
    num_bytes: 127302952.608
    num_examples: 5712
  - name: test
    num_bytes: 23679106.282
    num_examples: 1311
  download_size: 155438585
  dataset_size: 150982058.89
- config_name: multiclass
  features:
  - name: image
    dtype: image
  - name: label
    dtype:
      class_label:
        names:
          '0': glioma
          '1': meningioma
          '2': notumor
          '3': pituitary
  splits:
  - name: train
    num_bytes: 105555041.936
    num_examples: 5712
  - name: test
    num_bytes: 23785947.817
    num_examples: 1311
  download_size: 155381373
  dataset_size: 129340989.753
configs:
- config_name: binary
  data_files:
  - split: train
    path: binary/train-*
  - split: test
    path: binary/test-*
- config_name: multiclass
  data_files:
  - split: train
    path: multiclass/train-*
  - split: test
    path: multiclass/test-*
---
Downloads last month
78