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 47842d4 commit c513404Copy full SHA for c513404
R-package/tests/testthat/test_dmatrix.R
@@ -50,6 +50,14 @@ test_that("xgb.DMatrix: getinfo & setinfo", {
50
labels <- getinfo(dtest, 'label')
51
expect_equal(test_label, getinfo(dtest, 'label'))
52
53
+ expect_true(setinfo(dtest, 'label_lower_bound', test_label))
54
+ labels <- getinfo(dtest, 'label')
55
+ expect_equal(test_label, getinfo(dtest, 'label_lower_bound'))
56
+
57
+ expect_true(setinfo(dtest, 'label_upper_bound', test_label))
58
59
+ expect_equal(test_label, getinfo(dtest, 'label_upper_bound'))
60
61
expect_true(length(getinfo(dtest, 'weight')) == 0)
62
expect_true(length(getinfo(dtest, 'base_margin')) == 0)
63
0 commit comments