From 19f5082e285c8aed01e229b0cdf8a3f65b1e1b67 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:58:09 +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flash/tabular/classification/data.py b/flash/tabular/classification/data.py index 03e311a8f5c..a01954aa1cd 100644 --- a/flash/tabular/classification/data.py +++ b/flash/tabular/classification/data.py @@ -18,7 +18,11 @@ from flash.core.data.utilities.classification import TargetFormatter from flash.core.utilities.imports import _PANDAS_AVAILABLE, _TABULAR_TESTING from flash.core.utilities.stages import RunningStage -from flash.tabular.classification.input import TabularClassificationCSVInput, TabularClassificationDataFrameInput, TabularClassificationListInput +from flash.tabular.classification.input import ( + TabularClassificationCSVInput, + TabularClassificationDataFrameInput, + TabularClassificationListInput, +) from flash.tabular.data import TabularData if _PANDAS_AVAILABLE: @@ -331,6 +335,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