The Basket_Generator function generates baskets (sets) of items. The input is typically a set of purchase transaction records or web page view logs. Each basket is a unique combination or permutation of items.
You can use the baskets as part of a collaborative filtering algorithm, which is useful for analyzing purchase behavior of users in a store or on a web site. You can also use this function on activity data (for example, "users who viewed this page also viewed this page").