Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joyhuang9473/9f26dadcca367c6b2643 to your computer and use it in GitHub Desktop.
Save joyhuang9473/9f26dadcca367c6b2643 to your computer and use it in GitHub Desktop.
Train Linear SVM for Spam Classification (in spamTrain.mat, spamTest.mat)
% Octave console output
Training Linear SVM (Spam Classification)
(this may take 1 to 2 minutes) ...
Training ......................................................................
...............................................................................
...............................................................................
..... Done!
Training Accuracy: 99.850000
Evaluating the trained Linear SVM on a test set ...
Test Accuracy: 99.000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment