You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This poject try to train AI with different algorithms to play Tic Tac Toe.
Availabe Algorithms
Classification
K-nearest neighbors algorithm (KNN)
Support Vector Mahcine with Linear kernel (Linear-SVM)
Support Vector Mahcine with RBF kernel (RBF-SVM)
Multilayer perceptron (MLP)
Multilayer perceptron trained parameters by genetic algorithm (GA-MLP)
Regression
KNN
Linear regression
MLP
Programs:
Classifiers.py: classifier program for all classification models
Regressors.py: regressor program for all regression models
PlayTicTacToe.py: play Tic Tac Toe with all trained models.
GA_ClfMLP_singleLabel.py: implement genetic algorithms to find best MLP parameters.
Folders:
TrainedCVresults: all trained CV records with different parameters.
TrainedParameters: all trained models' parameters.
RecordConfusionMatrix&Accuracy: all trained models' accuracy and confusion matrix.
GameParameters: trained models' with the best parameters for playing Tic Tac Toe.
Archives:
ClassifiersRes4AllModels.xslx: all trained models' training accuracy and testing accuracy.
RegressorsRes4AllModels.xslx: all trained models' training accuracy and testing accuracy.
Noise_ClassifiersRes4AllModels.xslx: all trained models' training accuracy and testing accuracy with adding noise.
Reduce9by10_ClassifiersRes4AllModels.xslx: all trained models' training accuracy and testing accuracy with reducing dataset.
GA_ClfMLP_singleLabelResults.xlsx: Results of GA-MLP classification model for single model.
Notes
Please run the PlayTicTacToe.py program in 64 bits version of python. (Important.)
Otherwise, the errors will be occured like (ValueError: Buffer dtype mismatch...)
About
Train AI to play tic tac toe by regression or classification problems. The available algorithms include K-nearest neighbors algorithm (KNN) Support Vector Mahcine with Linear kernel (Linear-SVM) Support Vector Mahcine with RBF kernel (RBF-SVM) Multilayer perceptron (MLP) Multilayer perceptron trained parameters by genetic algorithm (GA-MLP).