Skip to content
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

Two small fixes for provenance. #176

Merged
merged 2 commits into from
Sep 20, 2021
Merged

Conversation

Craigacp
Copy link
Member

Description

Switches around how the provenance is captured in TransformTrainer so it has the right values, and updates XGBoostExternalModel so there is a way to create a model from an in-memory XGBoost Booster, which required an extra constructor on ExternalTrainerProvenance.

Motivation

The transform trainer was capturing the incorrect state of the inner trainer's RNG, and the XGBoost external model creator would always throw an exception if you didn't have a valid URL to a path on disk that it could hash.

@Craigacp Craigacp added Oracle employee This PR is from an Oracle employee squash-commits Squash the commits when merging this PR and removed squash-commits Squash the commits when merging this PR labels Sep 17, 2021
Copy link
Member

@pogren pogren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New constructor on ExternalTrainerProvenance takes a byte array and manages to create a working provenance using the hash value generated from the byte array, the current time, and the current working directory. This is used by XGBoostExternalModel.createXGBoostModel so that the provenance works. Also, some care has been given to synchronize the training and provenance construction in TransformTrainer.

@Craigacp Craigacp merged commit 51418f5 into main Sep 20, 2021
@Craigacp Craigacp deleted the transform-trainer-provenance branch September 20, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Oracle employee This PR is from an Oracle employee
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants