Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/lightgbm/src/main/scala/LightGBMBooster.scala
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,6 @@ class LightGBMBooster(val model: String) extends Serializable {
lightgbmlib.voidpp_value(boosterOutPtr)
}

def mergeModels(newModel: LightGBMBooster): LightGBMBooster = {
// Merges models to first handle
if (model != null) {
LightGBMUtils.validate(
lightgbmlib.LGBM_BoosterMerge(getModel(), newModel.getModel()),
"Booster merge")
}
new LightGBMBooster(model)
}

def saveNativeModel(session: SparkSession, filename: String): Unit = {
if (filename == null || filename.isEmpty()) {
throw new IllegalArgumentException("filename should not be empty or null.")
Expand Down