pythondata-miningmlxtend

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. I've tried to use 'pip install git+git://github.com/rasbt/mlxtend.git', it doesn't neither. Could i have any recommendations to sort this out please.

Tks.


Solution

  • You should remove the installed version on your machine. And install the newest version.

    pip uninstall mlxtend
    pip install git+git://github.com/rasbt/mlxtend.git