-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[breaking] [jvm-packages] Remove rabit check point. #9599
Conversation
- Add `numBoostedRound` to jvm packages - Remove rabit checkpoint version. [breaking] - Change the starting version of training continuation in JVM [breaking]. The last item is a bit more subtle, the change aligns JVM packages with Python packages. After this PR, the second training phrase counts iteration from 0 instead of from the previous starting iteration.
bccf531
to
aac597a
Compare
@wbo4958 Could you please help review this when you are available? |
} | ||
|
||
public void setVersion(int version) { | ||
this.version = version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems still need to remove the definition of version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what would it do to binary serialization.
jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/ExternalCheckpointManager.java
Outdated
Show resolved
Hide resolved
jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/ExternalCheckpointManager.java
Outdated
Show resolved
Hide resolved
booster.saveRabitCheckpoint(); | ||
} | ||
for (int iter = 0; iter < numRounds; iter++) { | ||
booster.update(dtrain, iter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the original logic is
if (obj != null) {
booster.update(dtrain, obj);
} else {
booster.update(dtrain, iter);
}
please double check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Need to create a test for the objective in a different PR.
GLTM. |
numBoostedRound
to jvm packagesThe last item is a bit more subtle, the change aligns JVM packages with Python packages. After this PR, training continuation counts iteration from 0 instead of from the previous starting iteration. The checkpointing scheme is changed to use boosting versions. I don't understand the previous versioning scheme, likely a legacy inherited from rabit.