[jvm-packages] Expose nativeBooster for XGBoostClassificationModel and XGBoostRegressionModel. (#3428)
This commit is contained in:
parent
295252249e
commit
aec6299c49
@ -211,6 +211,12 @@ class XGBoostClassificationModel private[ml](
|
||||
// only called in copy()
|
||||
def this(uid: String) = this(uid, 2, null)
|
||||
|
||||
/**
|
||||
* Get the native booster instance of this model.
|
||||
* This is used to call low-level APIs on native booster, such as "getFeatureScore".
|
||||
*/
|
||||
def nativeBooster: Booster = _booster
|
||||
|
||||
private var trainingSummary: Option[XGBoostTrainingSummary] = None
|
||||
|
||||
/**
|
||||
|
||||
@ -207,6 +207,12 @@ class XGBoostRegressionModel private[ml] (
|
||||
// only called in copy()
|
||||
def this(uid: String) = this(uid, null)
|
||||
|
||||
/**
|
||||
* Get the native booster instance of this model.
|
||||
* This is used to call low-level APIs on native booster, such as "getFeatureScore".
|
||||
*/
|
||||
def nativeBooster: Booster = _booster
|
||||
|
||||
private var trainingSummary: Option[XGBoostTrainingSummary] = None
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user