We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c0999 commit 7830b40Copy full SHA for 7830b40
test/booster_test.rb
@@ -57,6 +57,10 @@ def test_predict_daru
57
])
58
pred = booster.predict(x_test)
59
assert_elements_in_delta [0.9823112229173586, 0.9583143724610858], pred.first(2)
60
+
61
+ assert_raises(IndexError) do
62
+ booster.predict(Daru::DataFrame.new([{"x0" => 3.7}]))
63
+ end
64
end
65
66
def test_predict_rover
@@ -68,6 +72,10 @@ def test_predict_rover
68
72
69
73
70
74
75
76
+ assert_raises(KeyError) do
77
+ booster.predict(Rover::DataFrame.new([{"x0" => 3.7}]))
78
71
79
80
81
def test_model_to_string
0 commit comments