Skip to content

Commit

Permalink
Removed graph calls in specs
Browse files Browse the repository at this point in the history
They're unnecessary and will be substituted by a further spec.
  • Loading branch information
agarie committed Dec 19, 2013
1 parent c4623d9 commit a8d66d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions spec/id3_spec.rb
@@ -1,9 +1,6 @@
require 'spec_helper'

describe describe DecisionTree::ID3Tree do
after :each do
File.delete("continuous.png") if File.file?("continuous.png")
end

describe "simple discrete case" do
Given(:labels) { ["sun", "rain"]}
Expand Down Expand Up @@ -51,7 +48,6 @@
end
Given(:tree) { DecisionTree::ID3Tree.new(labels, data, "not angry", :continuous) }
When { tree.train }
Then { tree.graph("continuous") }
Then { tree.predict([7, 7]).should == "angry" }
Then { tree.predict([2, 3]).should == "not angry" }
end
Expand All @@ -72,7 +68,6 @@
end
Given(:tree) { DecisionTree::ID3Tree.new(labels, data, "not angry", color: :discrete, hunger: :continuous) }
When { tree.train }
Then { tree.graph("continuous") }
Then { tree.predict([7, "red"]).should == "angry" }
Then { tree.predict([2, "blue"]).should == "not angry" }
end
Expand Down

0 comments on commit a8d66d0

Please sign in to comment.