Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Fix broken model unit test function when using overrides #2553

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

kyleclo
Copy link
Contributor

@kyleclo kyleclo commented Feb 28, 2019

This was breaking for me when I wanted to create a unit test for a model, but also wanted to force certain parameter overrides as specified in the unit test.

In this function, the model is instantiated from the params file with overrides.

But the second time params are created from file, it's missing the overrides argument, causing mismatches in the rest of the test.

Copy link
Contributor

@matt-gardner matt-gardner left a comment

Choose a reason for hiding this comment

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

Thanks!

@matt-gardner matt-gardner merged commit 3d5560f into allenai:master Feb 28, 2019
@kyleclo kyleclo deleted the kylel/bugged_model_test_case branch March 1, 2019 02:18
reiyw pushed a commit to reiyw/allennlp that referenced this pull request Nov 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants