Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattsimoessilva/catdognet
A binary image classifier implemented in mostly pure Python, designed to classify images of cats and dogs.
https://github.com/mattsimoessilva/catdognet
Last synced: about 2 months ago
JSON representation
A binary image classifier implemented in mostly pure Python, designed to classify images of cats and dogs.
- Host: GitHub
- URL: https://github.com/mattsimoessilva/catdognet
- Owner: mattsimoessilva
- License: mit
- Created: 2023-09-29T03:12:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-04T11:35:18.000Z (about 1 year ago)
- Last Synced: 2023-12-04T20:27:08.690Z (about 1 year ago)
- Language: Python
- Size: 26.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CatDogNet: A Binary Image Classifier
CatDogNet is a binary image classifier implemented in mostly pure Python. The project aims to classify images of cats and dogs using a neural network built from scratch.
## Project Structure
The project is organized into several components:
- `image_processing.py`: Contains functions for loading, resizing, and normalizing images, creating labels based on filenames, and splitting data into training and testing sets.
- `math_functions.py`: Contains implementations of basic mathematical operations like dot product, matrix addition, scalar multiplication, and transpose.
- `neural_network.py`: Contains the implementation of a neural network with one hidden layer, including methods for forward propagation, computing cost, backward propagation, training the network, and making predictions.
- `main.py`: The main script that uses the functions defined in the other files to prepare data, train the neural network, and evaluate its performance.## Getting Started
To get started with CatDogNet, you'll need to install Python and the necessary libraries. You can install them with pip:
```bash
pip install -r requirements.txt
```Then, you can clone this repository to your local machine:
```bash
git clone https://github.com/yourusername/CatDogNet.git
```Navigate to the project directory and run the main script:
```bash
cd CatDogNet
python main.py
```## Contributing
Contributions to CatDogNet are welcome! Please feel free to open an issue or submit a pull request.