
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# finetuned-BrainTumor

This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the BrainTumorMRI dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0769
- Accuracy: 0.9763

## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 0.0002
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 2

### Training results

| Training Loss | Epoch  | Step | Validation Loss | Accuracy |
|:-------------:|:------:|:----:|:---------------:|:--------:|
| 0.5419        | 0.2674 | 100  | 0.2146          | 0.9317   |
| 0.23          | 0.5348 | 200  | 0.3410          | 0.8833   |
| 0.239         | 0.8021 | 300  | 0.1327          | 0.9573   |
| 0.1849        | 1.0695 | 400  | 0.1202          | 0.9649   |
| 0.1073        | 1.3369 | 500  | 0.1510          | 0.9545   |
| 0.1381        | 1.6043 | 600  | 0.0769          | 0.9763   |
| 0.146         | 1.8717 | 700  | 0.0821          | 0.9753   |


### Framework versions

- Transformers 4.40.0
- Pytorch 2.2.1+cu121
- Datasets 2.19.0
- Tokenizers 0.19.1

glioma meningioma notumor pituitary