Questions tagged [mlxtend]

85 questions
0
votes
1 answer

How to add filler feature values for 10 features?

I'm trying to add filler feature values for my SVM non-linear decision boundary. I got this error Column(s) [1 5 6 7 8] need to be accounted for in either feature_index or filler_feature_values. Here's my code: import numpy as np import pandas as…
Falady
  • 124
  • 1
  • 15
0
votes
1 answer

Stacking with original data by mlxtend or other tools

I want to predict result by meta-features made from stacking with original features. I have used mlxtend for stacking, and I tried to use original features with meta-features but this library can't work well. from lightgbm import LGBMRegressor from…
k_trader
  • 43
  • 2
  • 10
0
votes
0 answers

Hot encode data for market basket data

I have a dataset on which I am trying to determine association rules. The data after the merging and mapping is as follows: Transaction data snapshot Following this reference: Market Basket Analysis in Python. I see that I can use the groupby method…
Syeman
  • 57
  • 6
0
votes
1 answer

How mlxtend StackingRegressor with multiple cpu?

I would like to use mlxtend StackingRegressor to ensemble XGBoost,LGBM and Catboost .But I am not sure how much cpu I will use in this method. For example: In XGboost: import xgboost as xgb xgb_pars = {'nthread':…
Hq Li
  • 3
  • 4
0
votes
1 answer

binary classification with mlxtend ensemblevoteclassifier with prefitted classifiers

I am using mlxtend EnsembleVoteClassifier to do a binary classification with prefitted linear SVC but I keep having a recurrent error : ValueError: X.shape[1] = 352 should be equal to 336, the number of features at training time I load prefitted…
compmonks
  • 647
  • 10
  • 24
0
votes
0 answers

Windows 10 pip install not working Anaconda prompt

I am running Windows 10 and Installed Anaconda. I know pip is there: C:\Users\Rafay\Documents>pip --version pip 9.0.1 from C:\Users\Rafay\Anaconda3\lib\site-packages (python 3.6) I even activated the environment. C:\Users\Rafay\Documents>conda env…
Rafay
  • 23
  • 1
  • 6
0
votes
1 answer

Pipeline with meta classifier

I am trying to train a meta classifier on different features from a pandas dataframe. The features are either text or categorical in nature. I am having issues with fitting the model, with the following error 'Found input variables with inconsistent…
shbfy
  • 2,075
  • 3
  • 16
  • 37
0
votes
1 answer

How to correctly combine my classifiers?

I have to solve 2 class classification problem. I have 2 classifiers that output probabilities. Both of them are neural networks of different architecture. Those 2 classifiers are trained and saved into 2 files. Now I want to build meta…
Vladimir Tsyshnatiy
  • 989
  • 1
  • 10
  • 20
-1
votes
1 answer

ValueError: y must be an integer array. Found object. Try passing the array as y.astype(np.integer)

This is my code. import pandas as pd from sklearn.model_selection import train_test_split, cross_val_score from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.tree…
joon kim
  • 19
  • 3
-3
votes
1 answer

Mlxtend Apriori giving error with Sparse DataFrame

Issue with using sparse data frame with mlxtend apriori. I am running python 2.7 in anaconda and have installed mlxtend. Based on the latest version of mlxtend, the aprioir class supports sparse dataframe as its input. I have over 500k products that…
1 2 3 4 5
6