Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudoku Solver added #867

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,001 changes: 1,001 additions & 0 deletions Sudoku Solver/Dataset/sudoku_dataset.csv

Large diffs are not rendered by default.

Binary file added Sudoku Solver/images/GAN model result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sudoku Solver/images/RNN model result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sudoku Solver/images/cnn model result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,280 changes: 1,280 additions & 0 deletions Sudoku Solver/models/Sudoku_Solver_Using_CNN,_RNN_and_GAN.ipynb

Large diffs are not rendered by default.

Binary file added Sudoku Solver/models/sudoku_gan_generator.h5
Binary file not shown.
Binary file added Sudoku Solver/models/sudoku_rnn_model.h5
Binary file not shown.
26 changes: 26 additions & 0 deletions Sudoku Solver/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Introduction
Sudoku is a popular logic-based number puzzle. This project demonstrates how to use Convolutional Neural Networks (CNN) with TensorFlow to solve Sudoku puzzles by recognizing and filling in the missing numbers.

## Project Overview
This project aims to solve Sudoku puzzles using three different deep learning algorithms: Convolutional Neural Networks (CNN), Recurrent Neural Networks (RNN), and Generative Adversarial Networks (GAN). Each algorithm is implemented to demonstrate its effectiveness in solving Sudoku puzzles.


### Algorithms Used
# Convolutional Neural Network (CNN)

Training Loss: 0.8336
Training Accuracy: 80.30%
Test Accuracy: 80.30%

# Recurrent Neural Network (RNN)

Training Loss: 0.2435
Training Accuracy: 97.10%
Test Accuracy: 97.10%

# Generative Adversarial Network (GAN)

Training Epochs: 300
Discriminator Loss: 0.1164
Discriminator Accuracy: 98.44%
Generator Loss: 2.9346
7 changes: 7 additions & 0 deletions Sudoku Solver/requirement.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Prerequisites
To run this project, you need to have Python installed along with the following packages:

TensorFlow
Keras
NumPy
Pandas
Loading