Pattern Recognition homework4 in NYCU.
This project is to implement the cross-validation and grid search using only NumPy and train the SVM model.
The sample code can be download in this link.
$ conda create --name PR python=3.8 -y
$ conda activate PR
$ conda install matplotlib pandas scikit-learn -y
You can use the following command to train SVM model and find the best parameters. After training the model, the program will automatically evaluate the model.
python 310551031_HW4.py
This model can achieves 0.9010 on testing data.