Machine learning framework for Python.
0
votes
0answers
26 views
Scikit-learn reports memory error when fitting Gaussian process model
I want to fit a Gaussian Process with about 50,000 training examples and 130 features using Scikit-learn. Right now, I only have 1 theta hyperparameters as I run the process with all defaults. But I ...
2
votes
1answer
44 views
Polynomial regression using scikit-learn
I am trying to use scikit-learn for polynomial regression. From what I read polynomial regression is a special case of linear regression. I was hopping that maybe one of scikit's generalized linear ...
0
votes
0answers
23 views
What is the way to represent factor variables in scikit-learn while using Random Forests?
I am solving a classification problem using Random Forests. For that I have decided to use Python library scikit-learn. But I am new to both Random Forest algorithm and this tool. My data contains ...
1
vote
0answers
14 views
Mean absolute percentage error (MAPE) in Scikit-learn
How can we calculate the Mean absolute percentage error (MAPE) of our predictions using Python and scikit-learn?
From the docs, we have only these 4 metric functions for Regressions:
...
5
votes
2answers
83 views
Why do categorical predictor variables in regression need to be recoded as multiple predictors?
I'm learning about machine learning using Python's library scikit learn, and in their tutorial here they mentioned about a categorical variable color which can have ...
-1
votes
0answers
21 views
Results of TF-IDF Transformer [closed]
When using scikit-learn's tf-idf transformer, what does the values printed out here means? I printed out the col 2256 and the results include ...
2
votes
3answers
198 views
Why is svm not so good as decision tree on the same data?
I am new to machine learning and try to use scikit-learn(sklearn) to deal with a classification problem. Both DecisionTree and SVM can train a classifier for this problem.
I use ...
0
votes
2answers
48 views
In SVM, what are the labels and how do you get them from the data?
I'm working on a school project and have decided to use SVM for stock market prediction. I have a 1000x5 matrix of stock quotes containg data for open, close, high, low, volume data.
From what I ...
1
vote
1answer
95 views
How are categorical variables used when fitting a decision tree in scikit-learn?
I am used to R, in which you can use factor(variable) to indicate a categorical variable. However, in scikit-learn, trying to pass a variable of strings causes the DecisionTreeClassifier to give an ...
2
votes
1answer
164 views
Simple text classifier: classification taking forever?
I work for a small tech startup, and I want to classify or users into demographics based on the domain of their email address. When users sign up to our site, they can enter a job category, or pick ...
0
votes
0answers
80 views
Mixing categorial and continuous data in Naive Bayes classifier using scikit-learn
I'm using scikit-learn in Python to develop a classification algorithm to predict gender of a certain customers. Amongst others I want to use the Naive Bayes classifier but my problem is that I have a ...
5
votes
2answers
353 views
Random forest is overfitting
I am trying to use Random Forest Regression in scikits-learn. The problem is I am getting a really high test error:
train MSE, 4.64, test MSE: 252.25.
This is how ...
1
vote
0answers
82 views
Feature importance
The extremely randomized trees classifier (scikitlearn) provides a (multivariate) feature importance measurement Ensemble methods/feature importance evaluation.
For each feature, the classifier ...
3
votes
2answers
1k views
How does one interpret SVM feature weights?
I am trying to interpret the variable weights given by fitting a linear SVM.
(I'm using scikit-learn):
...
0
votes
1answer
251 views
Real values in Multinomial Naive Bayes classifier [duplicate]
Possible Duplicate:
Naive Bayes for two continuous features
I've seen that Multinomial Naive Bayes classifier in Sklearn accepts real valued feature vectors.
I previously assumed that ...
2
votes
1answer
105 views
Strange definition of RSS for elastic net in scikit-learn (Python)
I've been reading the manual about GLM, specifically the one on the elastic net in this link, and they come up with the following function to minimize:
$$\frac{1}{2n}||Xw-y||^2_{2}+\alpha \rho ...
0
votes
2answers
277 views
Collinear variables in Multiclass LDA training
I'm training a Multi-class LDA classifier with 8 classes of data.
While performing training, I get a warning of: "Variables are collinear"
I'm getting a training accuracy of over 90%.
I'm using ...
0
votes
0answers
224 views
Multi Class vs 2 class Naive Bayes
I was wondering what are the implications of using a multi-class Naive Bayes versus a 2 class Naive Bayes (for one against everything).
Which technique performs better?
I've previously came across ...
3
votes
2answers
196 views
Bayesion priors in ridge regression with scikit learn's linear model
I'm using scikit learn's linear model to do ridge regression.
Ridge regression penalizes parameters for moving away from zero. I want to penalize for moving away from a certain prior, with each ...
0
votes
1answer
190 views
SVM options in scikit-learn
Just curious about two options in the scikits SVM class. Does anyone know what Scale C and shrinking do? Not much in the documentation unfortunately.
Thanks

