data mining - Weka Apriori Algorithm -


i use apriori carry out affinity analysis on transaction data. have table list of orders , information. need use orderid , productid attributes in following format

orderid productid
1
1 b
1 c
2
2 c
3

weka requires create nominal attribute every product id , specify whether item present in order using true or false value like this:

1, true, true, true
2, true, false, true
3, true, false, false

my dataset contains 10k records... 3k different products. can suggest way create dataset in format? (besides manually time consuming way...)

how writing script convert it?

should less 10 lines in scripting language such python.

or may options of pivoting relation desired.

either way, straight forward programming task, don't see question here.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -