Questions tagged [mlxtend]

85 questions
1
vote
0 answers

Not able to fit metaclassifier with StackingCVClassifier

I'm trying to perform text classification with stacking. I'm new in ML, so apologies if this is a silly question. I'm trying to train the same algorithm, LogisticRegression on different textual features to create different classifiers and then use a…
dev_dev
  • 47
  • 7
1
vote
1 answer

dispatcher not defined when importing module

I was attempting to import some modules in a Spyder IDE: from sklearn.neighbors import KNeighborsClassifier from mlxtend.feature_selection import ExhaustiveFeatureSelector For both of the import statements above I get the error: "NameError: name…
1
vote
2 answers

basic mlxtend example giving invalid syntax error

I'm using Python 3.5.2 on Ubuntu 16.04. I've installed sklearn using.. sudo apt install python-sklearn and mlxtend using... sudo pip3 install mlxtend I'm trying to run the basic Iris example found on the Internet, but I am getting an error as soon…
deanresin
  • 1,466
  • 2
  • 16
  • 31
1
vote
1 answer

SequentialFeatureSelector ValueError: continuous format is not supported

I am new to Machine learning and trying to understand the SequentialFeatureSelector concept from sklearn. I am using Anaconda and Jupyter notebook for poc. I have imported from mlxtend.feature_selection import SequentialFeatureSelector as…
Gnana
  • 2,130
  • 5
  • 26
  • 57
1
vote
1 answer

How to find the features names of the coefficients using StackingClassifier + Logistic Regression (binary classification)

I am trying to use StackingClassifier with Logistic regression (Binary Classifier). Sample code: from sklearn.datasets import load_iris from mlxtend.classifier import StackingClassifier from sklearn.linear_model import LogisticRegression iris =…
Animesh Kumar Paul
  • 2,241
  • 4
  • 26
  • 37
1
vote
1 answer

Does the number of classifiers on stacking classifier have to be equal to the number of columns of my training/testing dataset?

I'm trying to solve a binary classification task. The training data set contains 9 features and after my feature engineering I ended having 14 features. I want to use a stacking classifier approach with mlxtend.classifier.StackingClassifier by using…
Moreno
  • 608
  • 1
  • 9
  • 24
1
vote
2 answers

How to fix Numpy 'otypes' within Pandas dataframe?

Objective: to run association rules on a binary values dataset d = {'col1': [0, 0,1], 'col2': [1, 0,0], 'col3': [0,1,1]} df = pd.DataFrame(data=d) This produces a data frame with 0's and 1's for corresponding column values. The problem is when I…
Student
  • 1,197
  • 4
  • 22
  • 39
1
vote
1 answer

Passing parameters to the fit method of underlying classifiers via StackingCVClassifier in mlxtend package

I'm using StackingCVClassifier (from the mlxtend package) in Python and one of my classifiers is an XGBoostClassifier instance and I'm trying to pass a parameter (early_stopping_rounds or simply verbose) to its fit method via the fit method of the…
Milad Shahidi
  • 627
  • 7
  • 13
1
vote
0 answers

Pandas Series.strids deprecated, and pandas groupby error

Here are a few lines of code: import pandas as pd import numpy as np from mlxtend.frequent_patterns import apriori from mlxtend.frequent_patterns import association_rules def encode_c(x): if x <= 0: return 0 if x >= 1: return 1 return…
Aashish Gahlawat
  • 409
  • 1
  • 7
  • 25
1
vote
0 answers

How should I use mlxtend for sentiment analysis?

I have created classifiers like naive bayes, logistic regression and SGDC, how should I use this ensemble voting method, to create a final score, I know there are both hard and soft voting. My featuresets are words basically. eclf = …
lavina
  • 11
  • 1
1
vote
1 answer

Permission denied when installing mlxtend (Python 3)

I am trying to install the python library mlxtend for machine learning purposes. I have tried several solutions, including: pip install mlxtend easy_install mlxtend I also have read all the threads r regarding similar errors with no success. When I…
Gabriela M
  • 605
  • 1
  • 10
  • 25
1
vote
0 answers

Accessing MLxtend StackingRegressor attributes when the meta regressor is a sklearn pipeline object

I am using mlxtend package using StackingRegressor and my meta_regressor is a sklearn package's pipeline object. After the model fit(), I want to print the coefficients, but I am having trouble doing that. from sklearn.ensemble import…
nrcjea001
  • 1,027
  • 1
  • 9
  • 21
0
votes
0 answers

Should different association rule mining algorithms return different results

I have a dataset of air quality values. For the research that I am writing, I am comparing the Apriori, ECLAT and FP-growth algorithm against eachother. For the Apriori and FP-growth algorithms I have used the mlxtend library and for ECLAT I have…
0
votes
0 answers

mlxtend LDA vs sklearn LDA

I'm trying to figure out 2 things regarding the LDA in mlxtend and the LDA on sklearn: for 3 classes, why do the LDA results differ between mlxtend and sklearn for 2 classes, why am I not able to get the same discriminants between mlxtend and…
0
votes
1 answer

Sklearn SequentialFeatureSelector "Pipeline should either be a classifier" when using a classifier

I get this error when using a classifier and SFS as a part of sklearn pipeline: Traceback (most recent call last): File "main.py", line 45, in rs.fit(X_train, y_train) File…