mindflow.data.ExistedDataConfig

class mindflow.data.ExistedDataConfig(name, data_dir, columns_list, data_format='npy', constraint_type='Label', random_merge=True)[source]

Set arguments of ExistedDataset.

Parameters
  • name (str) – specifies the name of dataset.

  • data_dir (Union[str, list, tuple]) – the path of existed data files.

  • columns_list (Union[str, list, tuple]) – list of column names of the dataset.

  • data_format (str, optional) – the format of existed data files. Default: 'npy'. The format of 'npy' is supported now.

  • constraint_type (str, optional) – specifies the constraint type of the created dataset. Default: "Label".

  • random_merge (bool, optional) – specifies whether randomly merge the given datasets. Default: True.

Supported Platforms:

Ascend GPU