[Solved] ITE4005 Assignment1

$25

File Name: ITE4005_Assignment1.zip
File Size: 178.98 KB

SKU: [Solved] ITE4005 Assignment1 Category: Tag:
5/5 - (1 vote)
  1. Environment l OS: Windows, Mac OS, or Linux
    • Languages: C, C++, C#, Java, or Python (any version is ok)
  1. Goal: find association rules using the Apriori algorithm
  1. Requirements

The program must meet the following requirements: l Execution file name: apriori.exe or apriori.py

  • Execute the program with three arguments: minimum support, input file name, output file name n Example:
  • Minimum support = 5%, input file name = input.txt, output file name = output.txt
  • If you python, you are allowed to use apriori.py file instead of apripri.exe
  • Input file format (.txt)

[item_id]t[item_id]

[item_id]t[item_id]t[item_id]t[item_id]t[item_id]

  • [item_id]t[item_id]t[item_id]t[item_id]
    n Row: transaction n item_id is a numerical value
  • There is no duplication of items in each transaction n Example:
  • Output file format Figure 1. Input file example (.txt)

[item_set]t[associative_item_set]t[support(%)]t[confidence(%)]

[item_set]t[associative_item_set]t[support(%)]t[confidence(%)]
n [item_set]t[associative_item_set]: association rules with minimum support

  • [item_set][associative_item_set]
  • Use braces to represent item sets: {[item_id],[item_id],} (Important!!) l g., {0}, {0,4}, {0,3,1}
  • Support: probability that a transaction contains [item_set] [associative_item_set]
  • Confidence: conditional probability that a transaction having [item_set] also contains [associative_item_set] n The order of output is unimportant.
  • The value of support and confidence should be rounded to two decimal places.

e.g., 24.631 rounded to two decimal places should become 24.63.

  • An additional penalty will be imposed if you dont keep the output file format. n Example:

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ITE4005 Assignment1[Solved] ITE4005 Assignment1
$25