Hi. I was coding the hui-miner ( Mining High Utility Itemsets without Candidate Generation ) in C#, which I encountered a problem.
There is no problem in 1-itemset and 2-itemset items. but in k-itemset, for example :
To create "dfgb" :
u({dfgb}, Each transaction) = u({dfg}, Each transaction) + u({fgb}, Each transaction) - u({fg}, Each transaction)
It has no problems programming, but we do not get the correct answer.
var items_split = number_split.Split(',');
var part_1 = string.Join(",", items_split.Take(items_split.Count() - 1));
var part_2 = string.Join(",", items_split.Skip(1));
var common = string.Join(",", (items_split.Take(items_split.Count() - 1).Skip(1)));
According to the above code:
items = d,f,g,b
items_split = d f g b
part_1 = d,f,g
part_2 = f,g,b
common = f,g