Skip to main content
. 2021 Apr 8;10(4):795. doi: 10.3390/foods10040795
Algorithm 1 CNN-SVM

Input: training data.

Output: predicted category.

Begin

Step1: train the CNN backbone with the CNN classifier on the training data

Step2: save the parameters of the CNN backbone

Step3: replace the CNN classifier with the SVM classifier

Step4: test the CNN-SVM model on the test data

Step5: output the classification results

End