<< Chapter < Page Chapter >> Page >

Svm

SVM involves three phases: a training phase, cross-validation phase, and testing phase. The training phase learns a model by which to classify new test examples. The cross-validation phase is used to choose parameters of the classifier that will result in the highest accuracy of the classifier.[1] The test phase applies the model with the chosen parameters to classify the test examples. The 150 images of our dataset were divided into 60% training examples, 20% cross-validation examples, and 20% test examples.

Training phase

The training phase takes two inputs: a feature matrix containing the values of each of the 12 features for each training example, and a label vector containing an integer representing which of the 5 classes each training example belongs to. Each training example exists at a particular location in the 12-dimensional “feature space.” The algorithm learns a model of boundaries that best separates the 5 classes of training examples in this feature space. The boundaries that are selected are the ones with the largest margin between training examples of differing classes. An example of a boundary learned for a two-dimensional feature space is shown in the figure below.

SVM Classifier.

Figure 1. SVM classifier. [2]

Cross-validation phase

SVM has two parameters, C and gamma, that control how smooth the separation boundaries are. C and gamma must be chosen to best prevent overfitting and underfitting of the model. In the cross-validation phase, training of the model is repeated for different combinations of C and gamma. The model is then applied to a cross-validation data set and the classification accuracy of each model is calculated. The values of C and gamma that result in the highest accuracy are selected.

Test phase

In the test phase, the SVM algorithm uses the boundary learned in the training phase to classify new test examples. The input to the test phase is the model from the training phase and the feature matrix for the test examples. The output of the test phase is the predicted class for each test example. The predicted values of the test examples can be compared to the actual values to calculate accuracy of the classifier.

Multiclass classification methods

Two methods of multiclass SVM classification were implemented: 1 vs 1 and 1 vs all.

In the training phase of 1 vs 1 classification, a binary classifier is trained for each pair of classes. For example, one of the classifiers would classify all Class I examples as positive examples and all Class 2 examples as negative examples. During the test phase, each of these classifiers is applied to the test data. For each training example, the class that gets the greatest number of positive classifications is chosen as the predicted class.

In the training phase of 1 vs all classification, a single classifier is trained for each of the classes. For example, one of the classifiers would classify all Class I examples as positive examples and all other examples as negative examples. During the test phase, the classifiers are applied to the test data. A single positive class is returned for each training example and is chosen as the predicted class for that example.

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Automatic white blood cell classification using svm and neural networks. OpenStax CNX. Dec 16, 2015 Download for free at http://legacy.cnx.org/content/col11924/1.5
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Automatic white blood cell classification using svm and neural networks' conversation and receive update notifications?

Ask