<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SVM in practice on SVM Tutorial</title><link>http://www.svm-tutorial.com/svm-practice/</link><description>Recent content in SVM in practice on SVM Tutorial</description><generator>Hugo</generator><language>en-us</language><copyright>© [Alexandre Kowalczyk](https://www.linkedin.com/in/alexandrekow)</copyright><lastBuildDate>Thu, 19 Aug 2021 16:34:39 +0000</lastBuildDate><atom:link href="http://www.svm-tutorial.com/svm-practice/index.xml" rel="self" type="application/rss+xml"/><item><title>How to prepare your data for text classification ?</title><link>http://www.svm-tutorial.com/text-classification-prepare-data/</link><pubDate>Sun, 19 Oct 2014 19:30:17 +0000</pubDate><guid>http://www.svm-tutorial.com/text-classification-prepare-data/</guid><description>&lt;h1 id="understand-how-data-is-represented"&gt;Understand how data is represented&lt;a class="anchor" href="#understand-how-data-is-represented"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;For text classification, you often begin with some text you want to classify. For instance, you have quotes and wants to find the quotes about love. Or you have emails and you want to separate spam from legitimate emails.&lt;/p&gt;&#10;&lt;p&gt;SVM is a &lt;strong&gt;supervised-learning algorithm&lt;/strong&gt;. It means you will need to manually label some data with what you think is the correct choice. Then you train a SVM model with it. Eventually you can use it to predict unlabeled data.&lt;/p&gt;</description></item><item><title>Linear Kernel: Why is it recommended for text classification ?</title><link>http://www.svm-tutorial.com/2014/10/svm-linear-kernel-good-text-classification/</link><pubDate>Sun, 19 Oct 2014 19:42:11 +0000</pubDate><guid>http://www.svm-tutorial.com/2014/10/svm-linear-kernel-good-text-classification/</guid><description>&lt;p&gt;The Support Vector Machine can be viewed as a kernel machine. As a result, you can change its behavior by using a different kernel function.&lt;/p&gt;&#10;&lt;p&gt;The most popular kernel functions are :&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;the linear kernel&lt;/li&gt;&#10;&lt;li&gt;the polynomial kernel&lt;/li&gt;&#10;&lt;li&gt;the RBF (Gaussian) kernel&lt;/li&gt;&#10;&lt;li&gt;the string kernel&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="the-linear-kernel-is-often-recommended-for-text-classification"&gt;The linear kernel is often recommended for text classification&lt;a class="anchor" href="#the-linear-kernel-is-often-recommended-for-text-classification"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;It is interesting to note that :&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;The original optimal hyperplane algorithm proposed by Vapnik in 1963 was a &lt;a href="http://en.wikipedia.org/wiki/Linear_classifier" title="Linear classifier" rel="noopener"&gt;linear classifier&lt;/a&gt; [1]&lt;/p&gt;</description></item><item><title>How to classify text using SVM in C#</title><link>http://www.svm-tutorial.com/2014/10/svm-tutorial-classify-text-csharp/</link><pubDate>Sun, 19 Oct 2014 19:34:07 +0000</pubDate><guid>http://www.svm-tutorial.com/2014/10/svm-tutorial-classify-text-csharp/</guid><description>&lt;h1 id="svm-tutorial--classify-text-in-c"&gt;SVM Tutorial : Classify text in C#&lt;a class="anchor" href="#svm-tutorial--classify-text-in-c"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;In this tutorial I will show you how to classify text with SVM in C#.&lt;/p&gt;&#10;&lt;p&gt;The main steps to classify text in C# are:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Create a new project&lt;/li&gt;&#10;&lt;li&gt;Install the SVM package with Nuget&lt;/li&gt;&#10;&lt;li&gt;Prepare the data&lt;/li&gt;&#10;&lt;li&gt;Read the data&lt;/li&gt;&#10;&lt;li&gt;Generate a problem&lt;/li&gt;&#10;&lt;li&gt;Train the model&lt;/li&gt;&#10;&lt;li&gt;Predict&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="step-1-create-the-project"&gt;Step 1: Create the Project&lt;a class="anchor" href="#step-1-create-the-project"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Create a new Console application.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="http://www.svm-tutorial.com/wp-content/uploads/2014/05/svm_tutorial_csharp_1.png" alt="SVM Tutorial Csharp" title="Create a new project" loading="lazy"&gt;&lt;/p&gt;</description></item><item><title>SVM Tutorial: How to classify text in R</title><link>http://www.svm-tutorial.com/2014/11/svm-classify-text-r/</link><pubDate>Sun, 23 Nov 2014 17:08:24 +0000</pubDate><guid>http://www.svm-tutorial.com/2014/11/svm-classify-text-r/</guid><description>&lt;p&gt;In this tutorial I will show you how to classify text with SVM in R.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="http://www.svm-tutorial.com/wp-content/uploads/2014/11/rlogo.png" alt="rlogo" loading="lazy"&gt;&lt;/p&gt;&#10;&lt;p&gt;The main steps to classify text in R are:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Create a new RStudio project&lt;/li&gt;&#10;&lt;li&gt;Install the required packages&lt;/li&gt;&#10;&lt;li&gt;Read the data&lt;/li&gt;&#10;&lt;li&gt;Prepare the data&lt;/li&gt;&#10;&lt;li&gt;Create and train the SVM model&lt;/li&gt;&#10;&lt;li&gt;Predict with new data&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="step-1-create-a-new-rstudio-project"&gt;Step 1: Create a new RStudio Project&lt;a class="anchor" href="#step-1-create-a-new-rstudio-project"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;To begin with, you will need to &lt;a href="http://www.rstudio.com/" title="RStudio" rel="noopener"&gt;download and install the RStudio development environment&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Support Vector Regression with R</title><link>http://www.svm-tutorial.com/2014/10/support-vector-regression-r/</link><pubDate>Thu, 23 Oct 2014 00:35:54 +0000</pubDate><guid>http://www.svm-tutorial.com/2014/10/support-vector-regression-r/</guid><description>&lt;p&gt;In this article I will show how to use R to perform a Support Vector Regression.&lt;br&gt;&#10;We will first do a simple linear regression, then move to the Support Vector Regression so that you can see how the two behave with the same data.&lt;/p&gt;&#10;&lt;h2 id="a-simple-data-set"&gt;A simple data set&lt;a class="anchor" href="#a-simple-data-set"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;To begin with we will use this simple data set:&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="http://www.svm-tutorial.com/wp-content/uploads/2014/10/svr-simple-data1.png" alt="A simple data set in excel" loading="lazy"&gt;&lt;/p&gt;&#10;&lt;p&gt;I just put some data in excel. I prefer that over using an existing well-known data-set because the purpose of the article is not about the data, but more about the models we will use.&lt;/p&gt;</description></item></channel></rss>