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

TFTrainer dataset doc & fix evaluation bug #6618

Merged
merged 2 commits into from
Aug 20, 2020

Conversation

joeddav
Copy link
Contributor

@joeddav joeddav commented Aug 20, 2020

discussed in #6551

@@ -38,7 +38,11 @@ class TFTrainer:
args (:class:`~transformers.TFTrainingArguments`):
The arguments to tweak training.
train_dataset (:class:`~tf.data.Dataset`, `optional`):
The dataset to use for training.
The dataset to use for training. The dataset should yield tuples of ``(features, labels)`` where
Copy link
Collaborator

Choose a reason for hiding this comment

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

I imagine it's the same for eval_dataset, or the datasets passed along to evaluate or predict, so I'd copy this docstrings over there too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah, I think they do expect the same format. Added.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for the clarifications!

@codecov
Copy link

codecov bot commented Aug 20, 2020

Codecov Report

Merging #6618 into master will decrease coverage by 0.93%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6618      +/-   ##
==========================================
- Coverage   79.79%   78.86%   -0.94%     
==========================================
  Files         156      156              
  Lines       28213    28213              
==========================================
- Hits        22513    22250     -263     
- Misses       5700     5963     +263     
Impacted Files Coverage Δ
src/transformers/trainer_tf.py 12.25% <0.00%> (ø)
src/transformers/modeling_tf_electra.py 25.13% <0.00%> (-73.83%) ⬇️
src/transformers/modeling_tf_mobilebert.py 24.55% <0.00%> (-72.36%) ⬇️
src/transformers/modeling_tf_utils.py 85.99% <0.00%> (-1.31%) ⬇️
src/transformers/tokenization_dpr.py 57.65% <0.00%> (+4.50%) ⬆️
src/transformers/modeling_tf_flaubert.py 88.34% <0.00%> (+63.80%) ⬆️
src/transformers/modeling_tf_albert.py 90.90% <0.00%> (+69.43%) ⬆️

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 039d8d6...76afd14. Read the comment docs.

@joeddav joeddav merged commit f9d280a into huggingface:master Aug 20, 2020
@joeddav joeddav deleted the tftrainer-doc branch August 28, 2020 15:10
Zigur pushed a commit to Zigur/transformers that referenced this pull request Oct 26, 2020
* TFTrainer dataset doc & fix evaluation bug

discussed in huggingface#6551

* add docstring to test/eval datasets
fabiocapsouza pushed a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
* TFTrainer dataset doc & fix evaluation bug

discussed in huggingface#6551

* add docstring to test/eval datasets
fabiocapsouza added a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
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