Skip to main content

# Questions tagged [e1071]

e1071 is a R package for miscellaneous functions of the Department of Statistics (e1071) at TU Wien (Vienna University of Technology). It includes functions for latent class analysis, short time Fourier transform, fuzzy clustering, support vector machines, shortest path computation, bagged clustering, naive Bayes classifier, etc.

48 questions
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

### Random Forest vs Support Vector Machine. Which is faster?

I am comparing the performance of Support Vector Machine with a radial basin function and Random Forests with 250 trees. I am using e1071 (SVM) and ...
• 113
0 votes
0 answers
30 views

### What is the math behind predict() in e1071 for SVM? [duplicate]

I have no math or computer science training. When I run predict(svm,data,type="class") R spits out a prediction of 1 or 0 for each row of data. What is it doing ...
• 57
1 vote
0 answers
76 views

### Help! All coefs = cost, too many support vectors, and performance is terrible SVM e1071

I am trying to learn how to use the svm modeler e1071 in R. When I run my model I get what seems to be an obnoxiously high number of support vectors and a terrible "best performance" of 12% using tune....
• 57
0 votes
0 answers
233 views

### R: Naive Bayes model e1071, why does it works with totally different columns in training ad testing?

I'm working with the e1071:: naiveBayes() function, but I don't figure out how it works. My doubts arose when I read this post. I've posted this question on SO, but ...
• 227
3 votes
1 answer
163 views

### Recover $\rho$ of $\nu$-SVM from e1071 package in R

Given a dataset $\{(x_i,y_i)\}_{i=1}^n$, the primal problem for $\nu$-SVM is: \begin{align} &\min_{w,b,\xi,\rho} && \frac{1}{2}w^\top w-\nu\rho+\frac{1}{n}\sum_{i=1}^n\xi_i\\ &\text{...
• 3,180
0 votes
1 answer
1k views

### R Naive Bayes and Laplace: Even turned off, works fine with unseen words in test data?

I'm trying to better understand Laplace+1 smoothing on Naive Bayes for text classification. Using the e1071 package in R, naiveBayes() function, I get some confusing results. If I fit a model using ...
2 votes
1 answer
2k views

### Error and Dispersion meaning in tune.out for SVM Classifier

I am using a SVM to solve a binary classification problem with qualitative response as output. To find out the best parameters for the SVM I used a 10-fold cross-validation technique. And the result ...
3 votes
1 answer
3k views

### Manually finding the bias term in classification SVM in R

Apropos of a follow-up question to this post, I tried to prove to myself that I understood the notation in the equation for the bias (page 5) in support vector machine SVM (classification, linear ...
• 26.5k
3 votes
2 answers
14k views

### c-classification SVM vs nu-classification SVM in e1071 R

When should I use c-svm and when nu-svm? I have read that "The range of C is from zero to infinity, but nu is always between [0,1]", but I couldn't understand anything from this. What is the range ...
2 votes
1 answer
4k views

### When SVM can do multi-class classification itself, why do people still use (one vs one) or (one Vs many) classification?

I used - library(e1071) which was able to predict all(10) of my classes in a single run. Now, why do people go for one Vs one and one Vs many approach? What is the benefit of those approaches? Is it ...
2 votes
4 answers
445 views

### Does SVM perform poorly with too few observations

I try to train a linear SVM using package e1071, with cost=10 on the following data: ...
2 votes
1 answer
5k views

### R - SVM (radial) regression using tune() (e1071) - How to uncover influential features?

I have some questions regarding SVM and regression. 1) How to interpret SVM (regression) results. 2) How to make a proper plot (containing decent information) ...
• 43
1 vote
1 answer
2k views

### What are the decision values at the margins in an SVM model?

I am trying to show the decision surface of an SVM model and its margins in a 3D RGL graph in R. Here is a really nice, replicable example from stack overflow. I am using the same example: ...
• 135
0 votes
1 answer
1k views

### How to train an SVR model? [closed]

I'm trying to figure out how SVR works, as I need to use it to model some time series. For this purpose, before starting with this model, I've tried to create a toy-model from a sinusoidal function, ...
9 votes
1 answer
32k views

### Meaning of Epsilon in SVM regression

I did some tutorials and read few articles but still have a problem with SVM, exactly with SVR. I'm doing analysis in R and I use e1071 library with "svm" function. Into that function I use my ...
• 113
1 vote
1 answer
1k views

### Fastest SVM library in R for large data and Multiclass problem [closed]

I try to implement SVM on a very large data set. My Data is categorical with three classes. I have tried e1071, but it took too long to solve my problem. Anyone ...
1 vote
3 answers
983 views

### naiveBayes does not give expected probabilities

I do not understand how the naiveBayes method from the e1071 package is calculating probabilities when classes are perfectly separable (more generally in categories where there are only one class ...
• 205
1 vote
0 answers
1k views

### How can in interpret the SVM summary on e1071 package in R?

I don't know how to interpret the svm summary outputs in R. I show you the reproducible code below. data <- read.csv(file.choose (), header = TRUE, sep=';') set.seed(1234) splitIndex &...
• 13
1 vote
1 answer
1k views

### How to calculate decision boundary from nonlinear svm in R?

As a follow up to this question - How to obtain decision boundaries from linear SVM in R? Is it possible to do the same with non linear SVM? (Radial for example). What do the weights represent?
11 votes
1 answer
17k views

### Difference between the types of SVM

I am new to support vector machines. Short explanation The svm function from the e1071 package in R offers various options: ...
• 5,197
2 votes
2 answers
1k views

### SVM always gives me (in average) below chances cross validation accuracy with random data

I am running e1071 linear SVM on my neuroimaging data. (by function svm()) When I was doing permutation tests, I found, in average, the cross validation (CV) ...
• 21
2 votes
1 answer
5k views

### Any way of getting vector of probabilities for each response with Naive Bayes in R?

I'm currently using naiveBayes from {e1071}. My response is simply a prediction based on my independent variables. Is there a ...
• 969
1 vote
1 answer
56 views

### e1071: CVE returns linear separation, Hold-out returns large error

I'm using the Adult dataset that can be found here: http://archive.ics.uci.edu/ml/datasets/Adult After taking a sample of the dataset, I use the svm function of e1071 to obtain the accuracy with a ...
• 21
7 votes
2 answers
11k views

### SVM predicts everything in one class

I'm running a basic language classification task. There are two classes (0/1), and they are roughly evenly balanced (689/776). Thus far, I've only created basic unigram language models and used these ...
• 490
1 vote
1 answer
725 views

### How to conduct Support Vector Mache using R(e1071)

Could anyone help me to interpret these results from R? How can I find nBSV,nSv, obj and iteration numbers? How can I use nBSV and nSv, obj to determine which kernel is the best? ...
6 votes
3 answers
15k views

### R caret Naive Bayes (untuned) results differ from klaR

I'm running a naive bayes classification model and I noticed that the caret package returns a different result than does klaR (which caret references) or e1071. My question is: is there something ...
• 63
1 vote
1 answer
2k views

### Naive Bayes Classifier in R with class weights

I'm searching for a Naive Bayes classifier in R where I can add a paramter for class weights. I need this, because my data is highly unbalanced. Eg.: Class1: 1000 examples Class2: 800 examples ...
• 113
7 votes
4 answers
2k views

### Do we have to fix splits before 10-folds cross validation if we want to compare different algorithms?

I work with R and let's say that I have a train set and a test set. I want to test different algorithms (for example neural networks and svm). I will perform a first 10-folds cross validation on my ...
• 263
1 vote
0 answers
915 views

### SVM for regression : confidence intervalls

I use the svm function (for regression) to make forecast like I would with for exemple the arima function: fit<-auto.arima(ts) ...
• 136
4 votes
0 answers
2k views

• 1,212
5 votes
2 answers
7k views

### Spam filtering using naive Bayesian classifiers with the e1071/klaR package on R

I'm looking at doing text classification/spam filtering using naive Bayesian classifiers with the e1071 or klaR package on R. Is there a good tutorial out there to describe this? I'm kind of stuck ...
2 votes
1 answer
1k views

### MLE for Naive Bayes in R

I am using the naivebayes function of the e1071 library. Some example commands are: ...