lib/fpgrowth/miner/pattern_base_extractor.rb
# Method accountable of treating each branch
#
# Make a copy of the item branch and append it to tree
#
# To achieve it, it make a list of the upper nodes
# Then build a Pattern
#
Method accountable of treating each branch
Make a copy of the item branch and append it to tree

To achieve it, it make a list of the upper nodes
Then build a Pattern
Method accountable of treating each branch Make a copy of the item branch and append it to tree To achieve it it make a list of the upper nodes Then build a Pattern
def horizontal_traversal_step(horizontal_cursor=@horizontal_cursor)
        @min_support = horizontal_cursor.support
        @current_branch = []
        @vertical_cursor = horizontal_cursor.parent
        @current_branch = down_to_top_traversal()
        @patterns << Pattern.new(@current_branch, @min_support)
      end
def horizontal_traversal_step ( horizontal_cursor = @horizontal_cursor ) @min_support = horizontal_cursor . support @current_branch = [ ] @vertical_cursor = horizontal_cursor . parent @current_branch = down_to_top_traversal ( ) @patterns << Pattern . new ( @current_branch , @min_support ) end
Method accountable of treating each branch
Make a copy of the item branch and append it to tree
Method accountable of treating each branch Make a copy of the item branch and append it to tree
horizontal_cursor
<not_specific>