File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/scala/org/apache/spark/ml/tree
test/scala/org/apache/spark/ml/classification Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ private[ml] object GBTClassifierParams {
538
538
Array (" logistic" ).map(_.toLowerCase(Locale .ROOT ))
539
539
}
540
540
541
- private [ml] trait GBTClassifierParams extends GBTParams with TreeClassifierParams {
541
+ private [ml] trait GBTClassifierParams extends GBTParams with TreeRegressorParams {
542
542
543
543
/**
544
544
* Loss function which GBT tries to minimize. (case-insensitive)
Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ class GBTClassifierSuite extends MLTest with DefaultReadWriteTest {
448
448
model2 : GBTClassificationModel ): Unit = {
449
449
TreeTests .checkEqual(model, model2)
450
450
assert(model.numFeatures === model2.numFeatures)
451
+ assert(model.featureImportances == model2.featureImportances)
451
452
}
452
453
453
454
val gbt = new GBTClassifier ()
You can’t perform that action at this time.
0 commit comments