
<!-- 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-animal

This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224](https://huggingface.co/microsoft/swin-base-patch4-window7-224) on the animal_images dataset.
It achieves the following results on the evaluation set:
- Loss: 0.1517
- Accuracy: 0.9665
- Precision: 0.9706
- Recall: 0.9665
- F1: 0.9664

## 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: 5e-05
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 100
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1     |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
| 1.6969        | 1.0   | 254  | 0.2613          | 0.9232   | 0.9372    | 0.9232 | 0.9182 |
| 0.4414        | 2.0   | 508  | 0.1796          | 0.9497   | 0.9520    | 0.9497 | 0.9472 |
| 0.3728        | 3.0   | 762  | 0.1895          | 0.9427   | 0.9556    | 0.9427 | 0.9417 |
| 0.3379        | 4.0   | 1016 | 0.1334          | 0.9651   | 0.9698    | 0.9651 | 0.9651 |
| 0.2953        | 5.0   | 1270 | 0.1837          | 0.9511   | 0.9626    | 0.9511 | 0.9494 |
| 0.2896        | 6.0   | 1524 | 0.1450          | 0.9609   | 0.9674    | 0.9609 | 0.9604 |
| 0.2567        | 7.0   | 1778 | 0.1517          | 0.9665   | 0.9706    | 0.9665 | 0.9664 |


### Framework versions

- Transformers 4.51.1
- Pytorch 2.5.1+cu124
- Datasets 3.5.0
- Tokenizers 0.21.0

antelope badger caterpillar chimpanzee cockroach cow coyote crab crow deer dog dolphin bat donkey dragonfly duck eagle elephant flamingo fly fox goat goldfish bear goose gorilla grasshopper hamster hare hedgehog hippopotamus hornbill horse hummingbird bee hyena jellyfish kangaroo koala ladybugs leopard lion lizard lobster mosquito beetle moth mouse octopus okapi orangutan otter owl ox oyster panda bison parrot pelecaniformes penguin pig pigeon porcupine possum raccoon rat reindeer boar rhinoceros sandpiper seahorse seal shark sheep snake sparrow squid squirrel butterfly starfish swan tiger turkey turtle whale wolf wombat woodpecker zebra cat