[jvm-packages] remove default parameters (#7938)

This commit is contained in:
Bobby Wang
2022-05-28 10:31:19 +08:00
committed by GitHub
parent 47224dd6d3
commit fbc3d861bb
8 changed files with 28 additions and 22 deletions

View File

@@ -84,4 +84,11 @@ class ParameterSuite extends FunSuite with PerTest with BeforeAndAfterAll {
new XGBoostClassifier(paramMap).fit(trainingDF)
}
test("Default parameters") {
val classifier = new XGBoostClassifier()
intercept[NoSuchElementException] {
classifier.getBaseScore
}
}
}