How bharanidharanv26/aimllab works
This repository is a set of standalone educational Python demos rather than one integrated application. Users run a script to see its result: A* search finds a path, Tic-Tac-Toe plays against a minimax computer opponent, and three machine-learning scripts train and assess regression or classification models. The ML demos include dataset inspection, visualization, and model comparison where implemented. The source excerpts show each script’s internal flow; no README documents additional capabilities.
Main entry points: ex2.py Game Loop · ex4.py Iris Data Prep · ex5.py Iris Data Prep · ex3.py Housing Data Prep
Components 21
Pathfinding Demo
- A* Search
ex1.py - Path Reconstruction
ex1.py
Game Demo
- Game Loop
ex2.py - Board Display
ex2.py - Win And Draw Checks
ex2.py - Minimax Search
ex2.py - Computer Move
ex2.py
ML Demos
- Housing Data Prep
ex3.py - Regression Models
ex3.py - Regression Evaluation
ex3.py - Model Comparison
ex3.py - Iris Data Prep
ex4.py - Decision Tree
ex4.py - Random Forest
ex4.py - Classifier Comparison
ex4.py - Iris Data Prep
ex5.py - SVM Training
ex5.py - SVM Evaluation
ex5.py - Boundary Visualization
ex5.py
Other components
- Script User
- Housing CSV
Connections 23
- Script User → A* Search: runs
ex1.py - A* Search → Path Reconstruction: reconstructs path
ex1.py - Script User → Game Loop: plays
ex2.py - Game Loop → Board Display: displays
ex2.py - Game Loop → Win And Draw Checks: checks outcome
ex2.py - Game Loop → Computer Move: requests move
ex2.py - Computer Move → Minimax Search: scores moves
ex2.py - Minimax Search → Win And Draw Checks: checks outcome
ex2.py - Housing CSV → Housing Data Prep: loads data
ex3.py - Script User → Housing Data Prep: runs
ex3.py - Housing Data Prep → Regression Models: prepares features
ex3.py - Regression Models → Regression Evaluation: predicts and scores
ex3.py - Regression Evaluation → Model Comparison: compares metrics
ex3.py - Script User → Iris Data Prep: runs
ex4.py - Iris Data Prep → Decision Tree: trains and predicts
ex4.py - Iris Data Prep → Random Forest: trains and predicts
ex4.py - Decision Tree → Classifier Comparison: reports accuracy
ex4.py - Random Forest → Classifier Comparison: reports accuracy
ex4.py - Script User → Iris Data Prep: runs
ex5.py - Iris Data Prep → SVM Training: prepares features
ex5.py - SVM Training → SVM Evaluation: predicts and scores
ex5.py - Iris Data Prep → Boundary Visualization: prepares plot data
ex5.py - SVM Training → Boundary Visualization: supplies support vectors
ex5.py