Questions tagged [mlxtend]
85 questions
0
votes
1 answer
sql server ML service gives low memory error for large data (Association Rule Mining Project)
I have a project that I want to find the rules of correlation between goods in the shopping cart .to do this ,I use the ML service(Python) in Sql Server ,and I use the mlxtend library to find the association rule.but the problem I have is that the…

AAA
- 21
- 6
0
votes
1 answer
TypeError: 'module' object is not callable using fpgrowth algorithm with mlxtend
from mlxtend.frequent_patterns import fpgrowth
#use F-P growth algorithm
#Num
frequent_itemsets_fp_num=fpgrowth(num, min_support=0.01, use_colnames=True)
Hi,
I've tried to use fpgrowth with mlxtend but have an error 'module' object not callable.…

Bry Sab
- 33
- 7
0
votes
0 answers
Mlxtend apriori not founding dtypes for sparse matrix
I've been trying to use an sparse matrix for association rule mining but it keeps throwing AttributeError: dtypes not found. I know what the Error means, but I haven't been able to solve it. This is what I have:
import pandas as pd
import scipy
from…

Nicolás Rojas U
- 63
- 7
0
votes
1 answer
Preventing python script from using all ram
I use a jupyter notebook to execute a pyton script. The script calls the association_rules function from the mlxtend framework. Calling this function the ram literally explodes from 500 MB used to over 32 GB. But that would not be the problem. The…

moritz
- 345
- 2
- 12
0
votes
1 answer
mlxtend.feature_selection forward selection not working with SVM linear kernel?
So I'm performing a feature selection using SVM with the mlxtend packege. X is a dataframe with the features, y is the target variable. This is part of my code.
from sklearn.svm import SVC
from mlxtend.feature_selection import…

dzsezusz
- 106
- 9
0
votes
0 answers
How to keep transaction number related to association rules created in mlxtend python?
The transaction numbers related with the frequent itemsets created are not kept after using the apriori method in mlxtend. They are dropped.
How can i keep the transaction numbers?
df = pd.read_csv('association_rule_items_fullmech.csv')
basket =…

3awny
- 319
- 1
- 2
- 10
0
votes
0 answers
Why Sequential Feature Selector doesn't remove features with STD=0
I'm running feature selection with mlxtend library:
classifier = RandomForestClassifier()
sfs = SequentialFeatureSelector(classifier,
k_features="best",
forward=True,
floating=True,
…

user3668129
- 4,318
- 6
- 45
- 87
0
votes
0 answers
Market Basket Analysis (Association Rule Mining) in Python doesn't resulting the Frequent Itemset
I'm sorry for my bad english.
I have orders data called df_merge that has these columns :
order_detail_id | order_id | product_id | price | quantity | desc_product | category | base_price
raw data
I wanna do Association Mining with that data…

Hnp Mira
- 11
- 2
0
votes
1 answer
What is clf and legend in 'plot_decision_regions'?
from mlxtend.plotting import plot_decision_regions
def knn_comparision(data, k):
X = data[['x1','x2']].values
y = data['y'].astype(int).values
clf = neighbors.KNeighborsClassifier(n_neighbors=k)
clf.fit(X, y)
# Plotting…

Shaurya Sheth
- 185
- 2
- 11
0
votes
1 answer
Association rule mining algorithm
I have a dataset like this:
id|kurs|grade
1|c1|a
1|c2|b
2|c3|a
I want to mine association rules in such a way.If one gets a grade 'a' in 'c1',he would get 'b' in c2.This is just an example,but I want to mine association rules in such a way.
I have…

Sri Test
- 389
- 1
- 4
- 21
0
votes
0 answers
Different roc_auc scores in Mlxtend vs Sklearn
I ran sequential feature selection (mlxtend) to find the best (by roc_auc scoring) features to use in a KNN. However, when I select the best features and run them back through sklearn knn with the same parameters, I get a much different roc_auc…

RadiologyM
- 11
- 3
0
votes
0 answers
Plotting decision boundary
I want to achieve a result like this:
I really like the style, with the decision regions alpha a bit lower and the coordinate system having this style.
currently my result looks like this:
which isn't too bad, but I would like to get closer to the…

CRoNiC
- 329
- 2
- 4
- 14
0
votes
1 answer
error import plot_decision_regions from mlxtend.plotting
I have problems importing plot_decision_regions from mlxtend.plotting.
I have correctly installed mlxtend and I can import it in python3 without problems.
from mlxtend.plotting import plot_decision_regions
Traceback (most recent call…

mrn314159
- 11
- 5
0
votes
1 answer
How to install mlxtend in jupyter
I tried to perform some task using mlxtend then I got error messages
I have checked the thread with a similar problem and none seems to address my own situation.
I tried to install from anaconda prompt with the following codes:
conda install…

Loui
- 97
- 2
- 11
0
votes
1 answer
Function throws TypeError in PyCharm not in JuPyter Notebook
I'm trying to create a function that mines and exports association rules between item categories using the Apriori algorithm from mlxtend. While this works beautifully in jupyter notebooks. I get a type error when I copy the same function int my…

raakshasan
- 55
- 9