# 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.

47 questions
Filter by
Sorted by
Tagged with
24 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 ...
39 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....
31 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 ...
59 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{...
356 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 ...
708 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 ...
1k 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 ...
7k 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 ...
3k 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 ...
216 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: ...
3k 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) ...
833 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: ...
872 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, ...
13k 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 ...
785 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 ...
563 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 ...
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 &...
762 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?
13k 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: ...
702 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) ...
4k 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 ...
53 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 ...
5k 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 ...
554 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? ...
14k 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 ...
1k 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 ...
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 ...
668 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) ...
1k views