0
$\begingroup$

How can I calculate support/confidence/lift on a dataset in order to find frequent itemsets and determine association rules, in python? What would be the most effective method for predicting and offering recommendations on a test set of incomplete "shopping carts"? I am limited to the Anaconda distribution so I cant use packages such as orange3, etc.

$\endgroup$
1
  • $\begingroup$ Have you tried using apriori algorithm? $\endgroup$
    – Toros91
    Commented Nov 29, 2017 at 2:37

2 Answers 2

3
$\begingroup$

I've done this (using anaconda) with the following libraries.

from mlxtend.frequent_patterns import apriori
from mlxtend.frequent_patterns import association_rules

Have a look here.

$\endgroup$
0
0
$\begingroup$

Python package Orange3-Associate, which contains functions for mining association rules and seems to be what you are referring to, should be able to be installed on Anaconda's Python distribution with Python's internal pip command, i.e.

pip install orange3-associate
$\endgroup$
3
  • $\begingroup$ As I mentioned in my post- I can only use the packages that are in the native distribution already. No pip install. $\endgroup$
    – zsad512
    Commented Aug 1, 2017 at 2:32
  • $\begingroup$ You could get Orange3-Associate into conda-forge, or is this, being a separate conda channel, also forbidden? $\endgroup$
    – K3---rnc
    Commented Aug 1, 2017 at 10:29
  • $\begingroup$ Forbidden :( Otherwise the project would be much simpler $\endgroup$
    – zsad512
    Commented Aug 1, 2017 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.