PAMI is a Python library containing 100+ algorithms to discover useful patterns in various databases across multiple computing platforms. (Active)
Previous | 🏠 Home | Next |
A utility database represents a non-binary transactional or temporal database.
A utility transactional database consists of a transactional identifier (tid), items, and their corresponding utility values in a transaction. A sample utility transactional database generated from the set of items, I={Bread, Jam, Butter, Pen, Books, Bat}, is shown in below table:
TID | Transactions (items and their prices) |
---|---|
1 | (Bread,1$), (Jam,2$), (Butter, 1.5$) |
2 | (Bat, 100$), (Ball, 10$) |
3 | (Pen, 2$), (Book, 5$) |
The utility transactional database must exist in the following format:
itemA<seo>itemB<sep>...<sep>itemN:total utility:utilityA<sep>utilityB<sep>...<sep>utilityN
The ‘total utility’ represents the total utility value of items in a transaction.
Bread Jam Butter:4.5:1 2 1.5
Bat Ball:110:100 10
Pen Book:7:2 5
An utility temporal database consists of timestamp, tid, items, and their corresponding utility values. A sample utility temporal database generated from the set of items, I={Bread, Jam, Butter, Pen, Books, Bat}, is shown in below table:
Timestamp | tid | Transactions (items and their prices) |
---|---|---|
1 | 1 | (Bread,1$), (Jam,2$), (Butter, 1.5$) |
2 | 2 | (Bat, 100$), (Ball, 10$) |
5 | 3 | (Pen, 2$), (Book, 5$) |
The utility temporal database must exist in the following format:
timestamp:itemA<seo>itemB<sep>...<sep>itemN:total utility:utilityA<sep>utilityB<sep>...<sep>utilityN
The ‘total utility’ represents the total utility value of items in a transaction.
The default separator, i.e.,
Timestamp, items, total utility, and individual utilities of the items within a transaction have to be seperated by the symbol ‘:’
1:Bread Jam Butter:4.5:1 2 1.5
2:Bat Ball:110:100 10
5:Pen Book:7:2 5