class_docstr: Represents the source of a Hugging Face dataset used in MLflow Tracking.
docstr: Create a `HuggingFaceDatasetSource` instance.
  
  Arguments in `__init__` match arguments of the same name in
  [`datasets.load_dataset()`](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.load_dataset).
  The only exception is `config_name` matches `name` in `datasets.load_dataset()`, because
  we need to differentiate from `mlflow.data.Dataset` `name` attribute.
  
  Args:
      path: The path of the Hugging Face dataset, if it is a dataset from HuggingFace hub,
          `path` must match the hub path, e.g., "databricks/databricks-dolly-15k".
      config_name: The name of of the Hugging Face dataset configuration.
      data_dir: The `data_dir` of the Hugging Face dataset configuration.
      data_files: Paths to source data file(s) for the Hugging Face dataset configuration.
      split: Which split of the data to load.
      revision: Version of the dataset script to load.
code: def __init__(
      self,
      path: str,
      config_name: Optional[str] = None,
      data_dir: Optional[str] = None,
      data_files: Optional[
          Union[
              str,
              Sequence[str],
              Mapping[str, Union[str, Sequence[str]]],
          ]
      ] = None,
      split: Optional[Union[str, "datasets.Split"]] = None,
      revision: Optional[Union[str, "datasets.Version"]] = None,
  ):
      """Create a `HuggingFaceDatasetSource` instance.
  
      Arguments in `__init__` match arguments of the same name in
      [`datasets.load_dataset()`](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.load_dataset).
      The only exception is `config_name` matches `name` in `datasets.load_dataset()`, because
      we need to differentiate from `mlflow.data.Dataset` `name` attribute.
  
      Args:
          path: The path of the Hugging Face dataset, if it is a dataset from HuggingFace hub,
              `path` must match the hub path, e.g., "databricks/databricks-dolly-15k".
          config_name: The name of of the Hugging Face dataset configuration.
          data_dir: The `data_dir` of the Hugging Face dataset configuration.
          data_files: Paths to source data file(s) for the Hugging Face dataset configuration.
          split: Which split of the data to load.
          revision: Version of the dataset script to load.
      """
      self.path = path
      self.config_name = config_name
      self.data_dir = data_dir
      self.data_files = data_files
      self.split = split
      self.revision = revision
  
file_path: mlflow/mlflow/data/huggingface_dataset_source.py
imports: from typing import TYPE_CHECKING, Any, Dict, Mapping, Optional, Sequence, Union
  from mlflow.data.dataset_source import DatasetSource
  from mlflow.utils.annotations import experimental
label_desc: Use image node_id 1 to create a new HuggingFaceDatasetSource object from inherited base classes: DatasetSource with example: obj = HuggingFaceDatasetSource(path, config_name, data_dir, data_files, split, revision)