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

Provenance updates #115

Merged
merged 2 commits into from
Feb 22, 2021
Merged

Provenance updates #115

merged 2 commits into from
Feb 22, 2021

Conversation

Craigacp
Copy link
Member

Description

Fixes a provenance marshalling bug in ModelProvenance and EnsembleModelProvenance and adds a test to ensure it doesn't happen again.

Also adds system information to ModelProvenance and EnsembleModelProvenance. Now these provenances track "java.version", "os.name" and "os.arch" from the Java properties. They can be removed by passing the appropriate flag on construction, or by stripping them using StripProvenance (and so StripProvenance gained the ability to remove system provenances).

Motivation

Tribuo 4.0.2 can produce different outputs on Java 8 x86_64, Java 9+ x86_64 and Java on aarch64, due to differences in the implementation of Math.exp, Math.log and Math.sqrt on those platforms. To ensure replicability we need to track what platform the model was created on until we've run it down and either switched to the slower StrictMath for correctness or learned to live with it. Future optimisations using the Vector API will also likely induce model divergence based on the hardware as the order of operations will be different when training models with SGD, so we might need this permanently.

…ovenance marshalling (and consequently all the data provenance and trainer provenances). Fixed the bugs that the test found.
…. Also adds the ability to strip those provenances using StripProvenance.
Copy link
Member

@jhalexand jhalexand left a comment

Choose a reason for hiding this comment

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

Looks good

@jhalexand jhalexand merged commit 1e499e8 into main Feb 22, 2021
@Craigacp Craigacp deleted the provenance-updates branch February 22, 2021 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants