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

Adding SingleTaskConfigurator, some cleanup #1135

Merged
merged 9 commits into from
Oct 7, 2020

Conversation

zphang
Copy link
Collaborator

@zphang zphang commented Oct 7, 2020

No description provided.

@@ -38,10 +38,175 @@ def cap_examples(num_examples, cap):
return min(num_examples, cap)


@Registry.register
@zconf.run_config
class SingleTaskConfigurator(zconf.RunConfig):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would prefer to not duplicate everything here. Can the configurators be combined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is meant to be a much more streamlined configurator since it only supports one task - the multi-task configurator has a lot more complexity because it needs to deal with potentially different tasks in different phases.

@codecov
Copy link

codecov bot commented Oct 7, 2020

Codecov Report

Merging #1135 into master will decrease coverage by 0.16%.
The diff coverage is 31.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1135      +/-   ##
==========================================
- Coverage   57.04%   56.87%   -0.17%     
==========================================
  Files         132      132              
  Lines        9584     9652      +68     
==========================================
+ Hits         5467     5490      +23     
- Misses       4117     4162      +45     
Impacted Files Coverage Δ
jiant/proj/main/scripts/configurator.py 59.13% <30.88%> (-16.29%) ⬇️
jiant/utils/python/datastructures.py 82.17% <100.00%> (ø)
jiant/utils/zconf/core.py 73.40% <0.00%> (+1.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5fc8a3...85efc32. Read the comment docs.

@zphang zphang merged commit 7d1cc29 into nyu-mll:master Oct 7, 2020
@zphang zphang deleted the more_polish_2 branch October 7, 2020 21:54
leo-liuzy pushed a commit to leo-liuzy/dynamic_jiant that referenced this pull request Nov 11, 2020
* Colab fix

* single-task configurator

* configurator

* blake

Co-authored-by: jeswan <57466294+jeswan@users.noreply.github.com>
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