TheAlgorithms / Python

All Algorithms implemented in Python
https://thealgorithms.github.io/Python/
MIT License
194.4k stars 45.66k forks source link

Add TensorFlow/Keras Neural Networks for Classification #11572

Closed asRot0 closed 1 month ago

asRot0 commented 2 months ago

Describe your change:

fully_connected_mnist.py demonstrates a basic fully-connected feed-forward network with two hidden layers, ReLU activation, and dropout for regularization.

cnn_mnist.py implements a Convolutional Neural Network (CNN) with multiple convolutional, pooling, and batch normalization layers for feature extraction and down-sampling, followed by fully connected layers for classification.

Checklist:

tianyizheng02 commented 1 month ago

Sorry, but we can't accept this PR because it's a how-to.

Your PR just uses imports all of the necessary NN functionality from TF. This repo is for educational purposes, and as such you need to provide your own implementation of your proposed algorithms. You did not implement the NNs yourself, and simply using TF to develop your models doesn't teach readers how a NN is actually implemented.

This was all stated in this repo's contributing guidelines, which you indicated that you have read:

As stated in the contributing guidelines:

Algorithms in this repo should not be how-to examples for existing Python packages. Instead, they should perform internal calculations or manipulations to convert input values into different output values. Those calculations or manipulations can use data types, classes, or functions of existing Python packages but each algorithm in this repo should add unique value.