- Minesweeper Game: Propositional Logic
- Nim Game AI: Reinforcement Learning using Q-Learning
- Traffic: Deep Learning
- Parser: NLP
- Attention Visualization: Word Prediction
- Crossword: AC3 Optimization
- Heredity: Bayesian Network Model
- PageRank: Probability
- and more ...
1. Knowledge Minesweeper Specification
Minesweeper game implemented with pygame
, offering both solo play AI play. The Minesweeper game follows the classic rules where the player must uncover all cells on the board.
The game implementation utilizes Propositional Logic for intelligent decision-making based on the current state of the board. Information like uncovered tiles and nearby mines is stored in the AI's state, enabling it to reason logically and deduce safe moves or identify mines with each new piece of information.
This project implements an AI to play the game of Nim using Reinforcement Learning through the Q-learning algorithm. The AI learns by playing games against itself, improving its strategy over time to make better decisions in future games.
Q(s,a)←Q(s,a)+α×(new_estimate−old_estimate)
α (alpha)
is the learning rate, controlling how much value new information.new estimate
is the sum of the immediate reward and the future rewards from the next state.old estimate
is the current Q-value for the state-action pair.
This project uses deep learning and convolutional neural networks (CNNs) to classify road sign images.
In this project I am using TensorFlow to build a neural network for classifying road signs from images.
And the German Traffic Sign Recognition Benchmark (GTSRB) dataset, which contains thousands of labeled images of 43 different types of road signs.
The parser task in AI and natural language processing (NLP) involves generating a syntactic structure, or parse tree, for a given sentence based on defined grammar rules.
This task uses NLTK to implement a context-free grammar (CFG) and a chart parser, allowing for an analysis of sentence structures. The parser identifies noun phrase chunks by breaking down sentences into their grammatical components.
This project leverages the BERT Transformer model to predict masked words within a given input text. Additionally, it visualizes the attention mechanism by generating layer-based attention diagrams, providing insights into how BERT attends to different parts of the input sequence.
3. Optimization Crossword Specification
- AC3 Algorithm: Ensures arc consistency for all variable pairs.
- Backtracking Search: Generates crossword puzzles based on constraint satisfaction.
- Efficient Variable Ordering: Uses MRV and Degree heuristics to speed up solving.
The task in this project is to use Bayesian Network Model to make inferences about a population. Given information about people, who their parents are, and whether they have a particular observable trait (e.g. hearing loss) caused by a given gene, the AI will infer the probability distribution for each person’s genes, as well as the probability distribution for whether any person will exhibit the trait in question using join probability.
- With probability 1 - d, the surfer chose a page at random and ended up on page p.
- With probability d, the surfer followed a link from a page i to page p.
i
ranges over all pages that link to pagep
N
total number of pages in subspaceNumLinks(i)
is the number of links present on pagei
.d
damping factor.