Skip to content

Commit

Permalink
Put back to 10 classifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Apr 11, 2017
1 parent ff298a8 commit 868ed91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/decisiontree/id3_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
### Copyright (c) 2007 Ilya Grigorik <ilya AT igvita DOT com>
### Modifed at 2007 by José Ignacio Fernández <joseignacio.fernandez AT gmail DOT com>

require 'set'

module DecisionTree
Node = Struct.new(:attribute, :threshold, :gain)

Expand Down Expand Up @@ -340,7 +338,7 @@ def initialize(attributes, data, default, type)
end

def train(data = @data, attributes = @attributes, default = @default)
@classifiers = 5.times.map do |i|
@classifiers = 10.times.map do |i|
Ruleset.new(attributes, data, default, @type)
end

Expand Down

0 comments on commit 868ed91

Please sign in to comment.