Questions tagged [mlxtend]

85 questions
10
votes
1 answer

Building ensemble model with the python merf library

I would like to use the merf (mixed effect random forest) library in an ensemble model e.g. by using the mlens or mlxtend python libraries. However, due to the non-traditional way in which the fit and predict methods of merf are structured, I am…
user308827
  • 21,227
  • 87
  • 254
  • 417
10
votes
5 answers

Issues importing mlxtend python

I'm new to python, so apologies if this is a silly question. I'm trying to use mlxtend, and have installed it using pip. Pip confirms that it is installed (when I type "pip install mlxtend" it notes that the requirement is already satisfied).…
BK42
  • 101
  • 1
  • 1
  • 4
8
votes
3 answers

plot_decision_regions with error "Filler values must be provided when X has more than 2 training features."

I am plotting 2D plot for SVC Bernoulli output. converted to vectors from Avg word2vec and standerdised data split data to train and test. Through grid search found the best C and gamma(rbf) clf =…
Ramakrishna B
  • 81
  • 1
  • 1
  • 3
6
votes
2 answers

Extract string from rules frozensets

With the following statement: rules = association_rules(frequent_itemsets, metric="lift", min_threshold=1.2) I get a data frame of rules in the format: frozenset({'Co_Apples'}) But I need to extract a Co_Apples as a string. How can I do that?
6
votes
0 answers

Error in mlxtend voting regressor while using random forest for feature selection

from mlxtend.regressor import StackingRegressor from sklearn.ensemble.forest import RandomForestRegressor as RFR from sklearn.ensemble import GradientBoostingRegressor as GBR import xgboost as xgb …
user308827
  • 21,227
  • 87
  • 254
  • 417
4
votes
2 answers

Applying Transaction Encoder on Dataset

I want to apply Apriori Algorithm to the retail dataset (market basket data from retail store). It has data in the form:- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44…
Raj
  • 2,997
  • 2
  • 12
  • 30
3
votes
2 answers

Stacking classifiers (sklearn and keras models) via StackingCVClassifier problem

I am kind of new to using the mlxtend package and as well as the Keras package so please bear with me. I have been trying to combine predictions of various models, i.e., Random Forest, Logistic Regression, and a Neural Network model, using…
3
votes
1 answer

ModuleNotFoundError: No module named 'mlxtend'

Hello Everyone, I have an issue I have to immediately deal with it. I installed mlxtend and used the library for apriori(market research). In my first attempt it worked then next day I tried to update it with new data but it gives exactly this error…
user14635144
  • 31
  • 1
  • 3
3
votes
2 answers

One Hot Encoding of large dataset

I want to build recommendation system using association rules with implemented in mlxtend library apriori algorithm. In my sales data there is information about 36 millions of transactions and 50k unique products. I tried to use sklearn…
psowa001
  • 725
  • 1
  • 6
  • 18
3
votes
0 answers

How to make "plot_decision_regions" from mlxtend plot all samples from iris dataset in multi-feature svc case?

I am trying to use scikit-learn svc model on iris dataset. I need to use four features (sepal length/width, petal length/width) and all three classes(setosa, versicolor, virginica) to train data. Then I need to visualize results, presenting only two…
DenR
  • 33
  • 5
3
votes
3 answers

How to fix 'No such file or directory' error while loading MNIST dataset

I have downloaded the MNIST training images and labels from yann.lecun.com and unzipped them. I am trying to load them using this code- from mlxtend.data import loadlocal_mnist features,labels = loadlocal_mnist( …
Inglorion
  • 171
  • 2
  • 2
  • 10
3
votes
3 answers

What is meta-classifier in StackingClassifier function in mlxtend?

In mlxtend library, there is An ensemble-learning meta-classifier for stacking called "StackingClassifier". Here is an example of a StackingClassifier function call: sclf = StackingClassifier(classifiers=[clf1, clf2, clf3], …
user3303020
  • 933
  • 2
  • 12
  • 26
3
votes
0 answers

StackingRegressor: how to define meta features?

I am having some difficulties with StackingRegressor. Actully I trained lot of regressors and get good results. I thougt that I would probably get better result if I use StackingRegressor but I did not. And I think that I am missing…
Anneso
  • 583
  • 2
  • 11
  • 20
2
votes
0 answers

mlxtend SequentialFeatureSelector give keepdims warning

I am new to datascience and tried running a tutorial. snippet of code: import pandas as pd from sklearn.feature_selection import VarianceThreshold from sklearn.model_selection import train_test_split from sklearn.neighbors import…
2
votes
1 answer

How to get rid of the "UserWarning: The initializer GlorotUniform is unseeded" message?

I have the following code from: Bias-Variance Decomposition for Model Assessment import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow.keras.layers import Dense from tensorflow.keras.models import…
Boris Reif
  • 123
  • 1
  • 10
1
2 3 4 5 6