Implemented the Feature Selection Method using Forward Selection and Backward Elimination.
Had heavy inspiration from my classmates & Professor Eamonn Keogh from UCR.
clone the repo
https://github.com/alexchsieh/Feature-Selection.gitinstall pip for pandas
sudo apt install python3-pipinstall pandas
pip install pandasrun the program
python3 main.pyuse a testing data set
./tests/Small_Data.txtsample forward selection solution
Finished search! The best feature subset is [6, 1], which has an accuracy of 95.0%sample backward elimination solution
Finished search! The best feature subset to remove is [5, 2, 4, 3], which has an accuracy of 95.0%- Fork it (https://github.com/alexchsieh/Feature-Selection/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request