Skip to content

liangchingyun/CNN-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNN Classifier

This project is a Convolutional Neural Network (CNN) classifier for images of cats, dogs, and pandas. The dataset is organized into the dataset directory, with three subdirectories: cat, dog, and panda, each containing 1000 images.

Dataset Split

The dataset is split into training, validation, and test sets with the following proportions:

  • Training Set: 70%
  • Validation Set: 15%
  • Test Set: 15%

Training and Evaluation

I train the model for 45 epochs. At the end of each epoch, the following metrics are recorded and plotted:

  • Training Loss
  • Validation Loss
  • Training Accuracy
  • Validation Accuracy

These metrics, plotted against the number of epochs, help us observe and judge the training performance of the model.

Finally, I evaluate the model's performance using the Test Loss and Test Accuracy.

Usage

  1. Clone or download this project.
  2. Install the required dependencies:
    pip install -r requirements.txt
    
  3. Run the main script:
    python main.py
    

Results and Analysis

Training process metrics:

image

Final test results:
Test Loss: 0.6178
Test Accuracy: 71.78%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published