[jvm-packages] test consistency of prediction functions with DMatrix and RDD (#1518)
* test consistency of prediction functions between DMatrix and RDD * fix the failed test cases
This commit is contained in:
@@ -128,7 +128,7 @@ class XGBoostModel(_booster: Booster) extends Serializable {
|
||||
* @param testSet test set represented as DMatrix
|
||||
*/
|
||||
def predict(testSet: DMatrix): Array[Array[Float]] = {
|
||||
_booster.predict(testSet, true, 0)
|
||||
_booster.predict(testSet)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user