cpp
cpp copied to clipboard
added code for Bayesian algorithm
I've added the code for the 'Bayesian' algorithm. First, you must run the code 'AItraining.cpp' which will read the file 'data.txt' and generate some additional text files to store the data. Then you can test the algorithm by running the code 'AItest.cpp'. The 'testFile.txt' contains the input for the code which you can change.