From 2be6d7757b5022c9dd6ee02dc339bf9ff4109818 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 May 2022 10:56:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- flash/tabular/classification/data.py | 2 +- flash/tabular/classification/input.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/flash/tabular/classification/data.py b/flash/tabular/classification/data.py index c25707523c8..5891fe21e10 100644 --- a/flash/tabular/classification/data.py +++ b/flash/tabular/classification/data.py @@ -331,6 +331,7 @@ def from_dict( ) -> "TabularClassificationData": """Creates a :class:`~flash.tabular.classification.data.TabularClassificationData` object from the given lists. + .. note:: The ``categorical_fields``, ``numerical_fields``, and ``target_fields`` do not need to be provided if ``parameters`` are passed instead. These can be obtained from the @@ -418,4 +419,3 @@ def from_dict( transform_kwargs=transform_kwargs, **data_module_kwargs, ) - diff --git a/flash/tabular/classification/input.py b/flash/tabular/classification/input.py index feeb06f5754..35f387d5489 100644 --- a/flash/tabular/classification/input.py +++ b/flash/tabular/classification/input.py @@ -93,4 +93,3 @@ def load_sample(self, sample: Dict[str, Any]) -> Any: if DataKeys.TARGET in sample: sample[DataKeys.TARGET] = self.format_target(sample[DataKeys.TARGET]) return sample -