Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into bugfix/tabular_no_categorical
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris authored Jan 31, 2022
2 parents ee0e740 + 700a9c8 commit 0354b20
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flash/audio/classification/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,8 @@ def from_data_frame(
>>> import shutil
>>> shutil.rmtree("train_folder")
>>> shutil.rmtree("predict_folder")
>>> del train_data_frame
>>> del predict_data_frame
"""

ds_kw = dict(
Expand Down
4 changes: 4 additions & 0 deletions flash/image/classification/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ def from_data_frame(
>>> import shutil
>>> shutil.rmtree("train_folder")
>>> shutil.rmtree("predict_folder")
>>> del train_data_frame
>>> del predict_data_frame
"""

ds_kw = dict(
Expand Down Expand Up @@ -883,6 +885,8 @@ def from_fiftyone(
>>> import os
>>> _ = [os.remove(f"image_{i}.png") for i in range(1, 4)]
>>> _ = [os.remove(f"predict_image_{i}.png") for i in range(1, 4)]
>>> del train_dataset
>>> del predict_dataset
"""

ds_kw = dict(
Expand Down
5 changes: 5 additions & 0 deletions flash/tabular/classification/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ def from_data_frame(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""
ds_kw = dict(
data_pipeline_state=DataPipelineState(),
Expand Down
4 changes: 4 additions & 0 deletions flash/tabular/forecasting/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def from_data_frame(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del data
"""

ds_kw = dict(
Expand Down
5 changes: 5 additions & 0 deletions flash/tabular/regression/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def from_data_frame(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""
ds_kw = dict(
data_pipeline_state=DataPipelineState(),
Expand Down
10 changes: 10 additions & 0 deletions flash/text/classification/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,11 @@ def from_hf_datasets(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""

ds_kw = dict(
Expand Down Expand Up @@ -618,6 +623,11 @@ def from_data_frame(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""

ds_kw = dict(
Expand Down
5 changes: 5 additions & 0 deletions flash/text/question_answering/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,11 @@ def from_dicts(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""

ds_kw = dict(
Expand Down
5 changes: 5 additions & 0 deletions flash/text/seq2seq/summarization/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ def from_hf_datasets(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""

ds_kw = dict(
Expand Down
5 changes: 5 additions & 0 deletions flash/text/seq2seq/translation/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,11 @@ def from_hf_datasets(
Training...
>>> trainer.predict(model, datamodule=datamodule) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Predicting...
.. testcleanup::
>>> del train_data
>>> del predict_data
"""

ds_kw = dict(
Expand Down
4 changes: 4 additions & 0 deletions flash/video/classification/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ def from_data_frame(
>>> import shutil
>>> shutil.rmtree("train_folder")
>>> shutil.rmtree("predict_folder")
>>> del train_data_frame
>>> del predict_data_frame
"""

ds_kw = dict(
Expand Down Expand Up @@ -852,6 +854,8 @@ def from_fiftyone(
>>> import os
>>> _ = [os.remove(f"video_{i}.mp4") for i in range(1, 4)]
>>> _ = [os.remove(f"predict_video_{i}.mp4") for i in range(1, 4)]
>>> del train_dataset
>>> del predict_dataset
"""

ds_kw = dict(
Expand Down

0 comments on commit 0354b20

Please sign in to comment.