Skip to content

Commit

Permalink
Initialize attributes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius committed Nov 22, 2015
1 parent 287ff7a commit b8b315a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/continuous-id3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

# Read in the training data
training = []
attributes = nil

File.open('data/continuous-training.txt', 'r').each_line do |line|
data = line.strip.chomp('.').split(',')
attributes ||= data
Expand Down

0 comments on commit b8b315a

Please sign in to comment.