|
41 | 41 | "source": [
|
42 | 42 | "## References\n",
|
43 | 43 | "\n",
|
44 |
| - "[1] Agrawal, Rakesh, and Ramakrishnan Srikant. \"[Fast algorithms for mining association rules](https://www.it.uu.se/edu/course/homepage/infoutv/ht08/vldb94_rj.pdf).\" Proc. 20th int. conf. very large data bases, VLDB. Vol. 1215. 1994." |
| 44 | + "[1] Agrawal, Rakesh, and Ramakrishnan Srikant. \"[Fast algorithms for mining association rules](https://www.it.uu.se/edu/course/homepage/infoutv/ht08/vldb94_rj.pdf).\" Proc. 20th int. conf. very large data bases, VLDB. Vol. 1215. 1994.\n", |
| 45 | + "\n", |
| 46 | + "## Related\n", |
| 47 | + "\n", |
| 48 | + "- [FP-Growth](../fpgrowth.md)\n", |
| 49 | + "- [FP-Max](../fpmax.md)" |
45 | 50 | ]
|
46 | 51 | },
|
47 | 52 | {
|
|
53 | 58 | },
|
54 | 59 | {
|
55 | 60 | "cell_type": "markdown",
|
56 |
| - "metadata": { |
57 |
| - "collapsed": true |
58 |
| - }, |
| 61 | + "metadata": {}, |
59 | 62 | "source": [
|
60 | 63 | "The `apriori` function expects data in a one-hot encoded pandas DataFrame.\n",
|
61 | 64 | "Suppose we have the following transaction data:"
|
|
923 | 926 | "name": "stdout",
|
924 | 927 | "output_type": "stream",
|
925 | 928 | "text": [
|
926 |
| - "\r", |
927 |
| - "Iteration: 1 | Sampling itemset size 2\r", |
928 |
| - "Iteration: 2 | Sampling itemset size 2\r", |
929 |
| - "Iteration: 3 | Sampling itemset size 2\r", |
930 |
| - "Iteration: 4 | Sampling itemset size 2\r", |
931 |
| - "Iteration: 5 | Sampling itemset size 2\r", |
932 |
| - "Iteration: 6 | Sampling itemset size 2\r", |
933 |
| - "Iteration: 7 | Sampling itemset size 2\r", |
934 |
| - "Iteration: 8 | Sampling itemset size 2\r", |
935 |
| - "Iteration: 9 | Sampling itemset size 2\r", |
936 |
| - "Iteration: 10 | Sampling itemset size 2\r", |
937 |
| - "Iteration: 11 | Sampling itemset size 3\r", |
938 |
| - "Iteration: 12 | Sampling itemset size 3\r", |
939 |
| - "Iteration: 13 | Sampling itemset size 3\r", |
940 |
| - "Iteration: 14 | Sampling itemset size 3\r", |
941 |
| - "Iteration: 15 | Sampling itemset size 3\r", |
942 |
| - "Iteration: 16 | Sampling itemset size 3\r", |
943 | 929 | "Iteration: 17 | Sampling itemset size 3\n"
|
944 | 930 | ]
|
945 | 931 | },
|
|
1176 | 1162 | }
|
1177 | 1163 | },
|
1178 | 1164 | "nbformat": 4,
|
1179 |
| - "nbformat_minor": 1 |
| 1165 | + "nbformat_minor": 2 |
1180 | 1166 | }
|
0 commit comments