Sunday, March 10, 2013

Support Vector Machines with RapidMiner




The support vector machine (SVM) approach represents a data-driven method for solving classification tasks. It has been shown to produce lower prediction error compared to classifiers based on other methods like artificial neural networks, especially when large numbers of features are considered for sample description.


1 Introduction

Support Vector Machines (SVMs) are a technique for supervised machine learning. They can perform classification tasks by identifying hyperplane boundaries between sets of classes. The original linear SVMs were developed by Vapnik and Lerner (1963) and were enhanced by Boser, Guyon, and Vapnik (1992) to be applied to non-linear datasets.

2 Linear models
In the case of linearly separable classes, a maximum margin hyperplane is constructed such that the boundary line stays as far away as possible from each class, as shown in Figure 1a.
The hyperplane is constructed by constructing a linear function:



Each instance has i attributes that define it. The weights, w, are calculated during the training step to build
the linear function. One method of iteratively calculating the weights is the perceptron method.




In the case that the two classes are not linearly separable, the soft margin optimisation can be performed (Figure 1b). If instances fall on the “wrong” side of the maximum margin hyperplane, the distance between the instance and the maximum margin hyperplane, known as the slack is minimised.

In addition to classifying tasks, linear models can be used for regression. Least squares regression can be used to fit a line to a dataset and new numerical values can be predicted for new instances. This technique can also be extended into non-linear space in a similar manner to the non-linear modeling process.

3 Support vectors
Support vectors are instances that are the closest to the linear boundary. There is always at least one support vector per class, often there are more. The support vectors can be chosen by constrained quadratic optimisation. The maximum margin hyperplane can be created using just the support vectors. This means that identifying the support vectors and removing all other instances before creating the linear model results in a computationally cheaper process.
In addition, choosing support vectors reduces the possibility of overfitting the training data. This is because the only time the maximum margin hyperplane will change is if a new instance is introduced into the training set that is a support vectors. All other instances will have no effect on the calculated model.

4 Non-linear data
In many situations classes are not separable by a linear boundary. If this is the case, the input data can be transformed using a nonlinear mapping, φ, into another dimension space. In this new mapping, a linear boundary can be found.
When mapping into a higher dimension space, the computational complexity of the algorithm increases. Because the training process iterates through all instances as it is building its model in order to update the weights for the model, a large number of operations need to be made. It turns out that calculation of the dot product between all instances can be calculated in the lower-dimension space by substituting a kernel function into the equation. The choice of which kernel to use is experimenter-chosen, and the choice can affect the results significantly (Burges 1998).





The combination of the so-called kernel trick and the use of support vectors makes SVMs more efficient than regular linear models.

5 Applications

SVMs have been successfully used in classification problems consisting of two or many classes.
Boser, Guyon, and Vapnik (1992) evaluated SVMs for recognising hand-written digits. SVMs have also

been successfully used to classify documents by topic, and the a/b classification of images.
In the music information retrieval area, SVMs are popular for classifying audio features into a set of classes. Mandel and Ellis (2005) use SVMs for performer classification. The technique has also been used to

calculate the mood and style of songs (Mandel, Poliner, and Ellis 2006).

Here is the video of the SVM application with Rapidminer software.



Resources

1.http://www.ncbi.nlm.nih.gov/pubmed/15130823
2.http://www.music.mcgill.ca/~alastair/621/porter11svm-summary.pdf
3.https://www.youtube.com/watch?v=VVQdehQzIOU


1 comment:

  1. INTERNATIONAL CONCEPT OF WORK FROM HOME
    Work from home theory is fast gaining popularity because of the freedom and flexibility that comes with it. Since one is not bound by fixed working hours, they can schedule their work at the time when they feel most productive and convenient to them. Women & Men benefit a lot from this concept of work since they can balance their home and work perfectly. People mostly find that in this situation, their productivity is higher and stress levels lower. Those who like isolation and a tranquil work environment also tend to prefer this way of working. Today, with the kind of communication networks available, millions of people worldwide are considering this option.

    Women & Men who want to be independent but cannot afford to leave their responsibilities at home aside will benefit a lot from this concept of work. It makes it easier to maintain a healthy balance between home and work. The family doesn't get neglected and you can get your work done too. You can thus effectively juggle home responsibilities with your career. Working from home is definitely a viable option but it also needs a lot of hard work and discipline. You have to make a time schedule for yourself and stick to it. There will be a time frame of course for any job you take up and you have to fulfill that project within that time frame.

    There are many things that can be done working from home. A few of them is listed below that will give you a general idea about the benefits of this concept.

    Baby-sitting
    This is the most common and highly preferred job that Women & Men like doing. Since in today's competitive world both the parents have to work they need a secure place to leave behind their children who will take care of them and parents can also relax without being worried all the time. In this job you don't require any degree or qualifications. You only have to know how to take care of children. Parents are happy to pay handsome salary and you can also earn a lot without putting too much of an effort.

    Nursery
    For those who have a garden or an open space at your disposal and are also interested in gardening can go for this method of earning money. If given proper time and efforts nursery business can flourish very well and you will earn handsomely. But just as all jobs establishing it will be a bit difficult but the end results are outstanding.

    Freelance
    Freelance can be in different wings. Either you can be a freelance reporter or a freelance photographer. You can also do designing or be in the advertising field doing project on your own. Being independent and working independently will depend on your field of work and the availability of its worth in the market. If you like doing jewellery designing you can do that at home totally independently. You can also work on freelancing as a marketing executive working from home. Wanna know more, email us on workfromhome.otr 214421@gmail.com and we will send you information on how you can actually work as a marketing freelancer.


    Internet related work
    This is a very vast field and here sky is the limit. All you need is a computer and Internet facility. Whatever field you are into work at home is perfect match in the software field. You can match your time according to your convenience and complete whatever projects you get. To learn more about how to work from home, contact us today on workfromhome otr214421@gmail.com and our team will get you started on some excellent work from home projects.


    Diet food
    Since now a days Women & Men are more conscious of the food that they eat hence they prefer to have homemade low cal food and if you can start supplying low cal food to various offices then it will be a very good source of income and not too much of efforts. You can hire a few ladies who will help you out and this can be a good business.

    Thus think over this concept and go ahead.

    ReplyDelete