REPOSITORY CODING · MEDIUM
Frequent itemsets accept support exactly equal to the minimum count and contain one to three sorted items
Frequent itemsets accept support exactly equal to the minimum count and contain one to three sorted items. Trace the native model, algorithm services, repository snapshot and HTTP preview. Repair the incident while preserving the other contracts. All explicit fixtures and mandatory regression groups are available with bash test/run.sh.
frequent-itemsetsMarket basket association rule laboratory
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
PySpark · 55 minute session
- Treat every basket as a set of items before counting singleton or larger itemset support. Repeated labels in one basket are not repeated transactions.
- Include empty baskets in the transaction population used by lift and reported denominators.
- Frequent itemsets accept support exactly equal to the minimum count and contain one to three sorted items.
- Confidence is joint support divided by antecedent support in both threshold selection and the reported score.
- Lift uses joint support times the full transaction population divided by both marginal counts, and identical transaction-ID redelivery counts once.
- At most forty observations, eight labels and eight entries per basket. Candidate sets are bounded to size three. Native Spark arrays, joins and grouped counts produce exact supports; reported ratios round to six decimals.