Questions tagged [svm]

Questions about Support Vector Machines. SVMs are supervised learning models used for classification and regression tasks.

38 questions
8
votes
3 answers

Why do we try to maximize Lagrangian in SVMs?

I was learning about support vector machines from MIT OpenCourseWare. I figured it out. I understand why we try to minimize $\frac{1}{2} w^2$. I just did not get why we try to maximize Lagrange expression like said at 35:56 in the YouTube video.…
5
votes
1 answer

What algorithm do SVMs use to minimize their objective function?

Support Vector Machines turn machine learning linear classification tasks into a linear optimization problems. $$ \text{minimize } J(\theta,\theta_0) = \frac1n \sum_1^n \text{HingeLoss}(\theta,\theta_0) + \frac{\lambda}{2} ||\theta||^2 $$ My…
HelloWorld
  • 167
  • 5
5
votes
1 answer

k-means clustered data: how to label newly incoming data

I have a data set with labels that were produced by a $k$-means clustering algorithm. Now there is some data (with the same data structure) from another source and I wonder what is the most sensible way to label this new, yet unseen data? I was…
Uli Niklas
  • 51
  • 1
3
votes
1 answer

Why doesn't this derivation of the margin in a SVM give the correct result?

I'm trying to derive the optimization objective for an SVM (namely $1/\|w\|$), but I'm running into a little trouble. I've already read this question, which has certainly offered a lot of insight into the problem, but I would like to know why my own…
user3002473
  • 143
  • 6
3
votes
1 answer

Kernel Perceptron vs Polynomial Perceptron

I was looking at Support Vector machines (SVM) kernels. Looking at Polynomial Kernel and Kernel Perceptron I was curious how they differ? Work Done Polynomial Kernel: $d_{k+1}(x)=d_{k}(\bar{x})+\rho k(\bar{x}_{k}, \bar{x})\; \mbox{if}\;…
2
votes
1 answer

How to tackle different sample size in the training set in SVM

I have to train a SVM for a classification problem. I have some strings that are the paths in a deterministic finite automata (DFA). If the alphabet is -01- then possible strings are 011101110 or 0110 for example. The purpose of classifier (SVM)…
Nick
  • 231
  • 2
  • 8
2
votes
2 answers

Overfitting in Machine Learning Algorithms

I am new in the ML. I know that overfitting is memorizing the data while training. Like in Neural Network, if we make lots of layers and lots of hidden nodes, we can memorize all the data, but it can be bad because train data would not cover the…
Sami
  • 163
  • 3
2
votes
0 answers

Machine Learning Algorithm Recommendation For Sensor Data

I would like to classify data coming from a sensor. In the literature Hidden Markov Model and SVM are used, but I would like to improve results with another methods.The picture how data and classes are as follows; x is time axis and y is sensor…
2
votes
1 answer

SVM with different length features

I need to train SVM with 2 different features..the problem is one feature is the HOG with length 144 and other an RGB value with length 3.. Can i combine these two features to train SVM and test using the same? the code iam using…
user67593
  • 23
  • 2
2
votes
0 answers

Support Vectors in SVM

It might be a very basic question.$\\$ I am considering the SVM optimization problem here.$\\$ In a training set where the data is linearly separable, and we are using a hard margin (no slack allowed), the support vectors lie along the supporting…
pranavps
  • 31
  • 3
2
votes
1 answer

How to use PHOG and LPQ features for Emotion Recognition?

I have a database that consists of PHOG and LPQ features for each image. Now, I wish to train an SVM on these features for emotion recognition i.e SVM classifies the images on basis of emotion in the image. Please provide a detailed procedure on…
Divyat
  • 45
  • 3
2
votes
0 answers

How to train SVM in matlab / python for MultiLabel data?

I am training a problem such that my output (y) could be more than one class. For example, the SVM could say, this input vector is class 1, but it could also say, this input vector is classes 1 AND 5. This is not the same as a multiclass SVM…
2
votes
0 answers

What is the complexity of classification with SVMs?

I'm interested in how fast SVMs can classify new data with $c \in \mathbb{N}_{\geq 2}$ classes and $n \in \mathbb{N}_{\geq 1}$ features. Example for Neural Networks For neural networks, this depends very much on the architecture. For supposing you…
Martin Thoma
  • 2,360
  • 1
  • 22
  • 41
2
votes
1 answer

Feature values range

Suppose I am about to use SVM for learning a classification or ranking function. Suppose that my feature vectors are two dimensional and that values for one dimension are, say, natural numbers and the values for the other dimension are real numbers…
zpavlinovic
  • 1,664
  • 10
  • 19
2
votes
0 answers

How can a classifier using Laplacian kernel achieve no error on the input samples?

If we have a sample dataset $S = \{(x_1, y_i),\dots,(x_n,y_n)\}$ where $y_i = \{0,1\}$, how can we tune $\sigma$ such that there is no error on $S$ from a classifier using the Laplacian kernel? Laplacian Kernel is $$ K(x,x') = \exp\left(-\dfrac{\|…
1
2 3