datasets API reference
207 public APIs from datasets (huggingface/datasets) — 79 classes, 36 functions, 92 methods. Signatures extracted by static analysis of the actual source.
Repository: huggingface/datasets
| Kind | Count |
|---|---|
| Classes | 79 |
| Functions | 36 |
| Methods | 92 |
API list
class
src.datasets.arrow_dataset.ColumnAn iterable for a specific column of a [`Dataset`].
class
src.datasets.arrow_dataset.DatasetA Dataset backed by an Arrow table.
method
src.datasets.arrow_dataset.Dataset.add_column(name:str, column:Union[list, np.ndarray], new_fingerprint:Optional[str]=None, feature:Optional[FeatureType]=None)Add column to Dataset.
method
src.datasets.arrow_dataset.Dataset.add_item(item:dict, new_fingerprint:Optional[str]=None)Add item to Dataset.
method
src.datasets.arrow_dataset.Dataset.cast_column(column:str, feature:FeatureType, new_fingerprint:Optional[str]=None) -> 'Dataset'Cast column to feature for decoding.
method
src.datasets.arrow_dataset.Dataset.column_names() -> list[str]Names of the columns in the dataset.
method
src.datasets.arrow_dataset.Dataset.data() -> TableThe Apache Arrow table backing the dataset.
method
src.datasets.arrow_dataset.Dataset.flatten(new_fingerprint:Optional[str]=None, max_depth=16) -> 'Dataset'Flatten the table.
method
src.datasets.arrow_dataset.Dataset.num_columns() -> intNumber of columns in the dataset.
method
src.datasets.arrow_dataset.Dataset.skip(n:int) -> 'Dataset'Create a new [`Dataset`] that skips the first `n` elements.
method
src.datasets.arrow_dataset.Dataset.take(n:int) -> 'Dataset'Create a new [`Dataset`] with only the first `n` elements.
method
src.datasets.arrow_dataset.Dataset.to_dict(batch_size:Optional[int]=None, batched:bool=False) -> Union[dict, Iterator[dict]]Returns the dataset as a Python dict.
method
src.datasets.arrow_dataset.Dataset.to_list() -> listReturns the dataset as a Python list.
method
src.datasets.arrow_dataset.Dataset.to_pandas(batch_size:Optional[int]=None, batched:bool=False) -> Union[pd.DataFrame, Iterator[pd.DataFrame]]Returns the dataset as a `pandas.DataFrame`.
method
src.datasets.arrow_dataset.Dataset.unique(column:str) -> listReturn a list of the unique elements in a column.
class
src.datasets.arrow_dataset.NonExistentDatasetErrorUsed when we expect the existence of a dataset
class
src.datasets.arrow_reader.ArrowReaderBuild a Dataset object out of Instruction instance(s).
method
src.datasets.arrow_reader.ArrowReader.read_table(filename, in_memory=False) -> TableRead table from file.
class
src.datasets.arrow_reader.BaseReaderBuild a Dataset object out of Instruction instance(s).
method
src.datasets.arrow_reader.BaseReader.read(name, instructions, split_infos, in_memory=False)Returns Dataset instance(s).
class
src.datasets.arrow_reader.ParquetReaderBuild a Dataset object out of Instruction instance(s).
class
src.datasets.arrow_reader.ReadInstructionReading instruction for a dataset.
class
src.datasets.arrow_writer.ArrowWriterShuffles and writes Examples to Arrow files.
method
src.datasets.arrow_writer.ArrowWriter.write_table(pa_table:pa.Table, writer_batch_size:Optional[int]=None)Write a Table to file.
class
src.datasets.builder.BuilderConfigBase class for `DatasetBuilder` data configuration.
method
src.datasets.builder.BuilderConfig.create_config_id(config_kwargs:dict, custom_features:Optional[Features]=None) -> strThe config id is used to build the cache directory.
class
src.datasets.builder.DatasetBuilderAbstract base class for all datasets.
method
src.datasets.builder.DatasetBuilder.as_dataset(split:Optional[Union[str, Split, list[str], list[Split]]]=None, in_memory=False) -> Union[Dataset, DatasetDict]Return a Dataset for the specified split.
class
src.datasets.data_files.DataFilesListList of data files (absolute local paths or URLs).
class
src.datasets.download.download_config.DownloadConfigConfiguration for our cached path manager.
class
src.datasets.exceptions.DataFilesNotFoundErrorNo (supported) data files found.
class
src.datasets.exceptions.DatasetNotFoundErrorDataset not found.
class
src.datasets.exceptions.DatasetsErrorBase class for exceptions in this library.
class
src.datasets.exceptions.DefunctDatasetErrorThe dataset has been defunct.
class
src.datasets.exceptions.ExpectedMoreSplitsErrorSome recorded splits are missing.
class
src.datasets.exceptions.FileNotFoundDatasetsErrorFileNotFoundError raised by this library.
class
src.datasets.exceptions.SplitsVerificationErrorError raised during splits verifications.
class
src.datasets.exceptions.UnexpectedDownloadedFileErrorSome downloaded files were not expected.
class
src.datasets.exceptions.UnexpectedSplitsErrorThe expected splits of the downloaded file is missing.
class
src.datasets.features.audio.AudioAudio [`Feature`] to extract audio data from an audio file.
method
src.datasets.features.audio.Audio.cast_storage(storage:Union[pa.StringArray, pa.StructArray]) -> pa.StructArrayCast an Arrow array to the Audio arrow storage type.
method
src.datasets.features.audio.Audio.decode_example(value:dict, token_per_repo_id:Optional[dict[str, Union[str, bool, None]]]=None) -> 'AudioDecoder'Decode example audio file into audio data.
method
src.datasets.features.audio.Audio.embed_storage(storage:pa.StructArray, token_per_repo_id=None, local_files:bool=True, remote_files:bool=True) -> pa.StructArrayEmbed audio files into the Arrow array.
method
src.datasets.features.audio.Audio.encode_example(value:Union[str, bytes, bytearray, dict, 'AudioDecoder']) -> dictEncode example into a format for Arrow.
class
src.datasets.features.features.Array2DCreate a two-dimensional array.
class
src.datasets.features.features.Array3DCreate a three-dimensional array.
class
src.datasets.features.features.Array4DCreate a four-dimensional array.
class
src.datasets.features.features.Array5DCreate a five-dimensional array.
class
src.datasets.features.features.ClassLabelFeature type for integer class labels.
method
src.datasets.features.features.ClassLabel.int2str(values:Union[int, Iterable]) -> Union[str, Iterable]Conversion `integer` => class name `string`.
method
src.datasets.features.features.ClassLabel.str2int(values:Union[str, Iterable]) -> Union[int, Iterable]Conversion class name `string` => `integer`.
method
src.datasets.features.features.Features.arrow_schema()Features schema.
method
src.datasets.features.features.Features.copy() -> 'Features'Make a deep copy of [`Features`].
method
src.datasets.features.features.Features.encode_column(column, column_name:str)Encode column into a format for Arrow.
method
src.datasets.features.features.Features.flatten(max_depth=16) -> 'Features'Flatten the features.
method
src.datasets.features.features.Features.from_arrow_schema(pa_schema:pa.Schema) -> 'Features'Construct [`Features`] from Arrow Schema.
method
src.datasets.features.features.Features.from_dict(dic) -> 'Features'Construct [`Features`] from dict.
method
src.datasets.features.features.Features.type()Features field types.
class
src.datasets.features.features.JsonFeature type for JSON objects.
method
src.datasets.features.features.Json.cast_storage(storage:Union[pa.Array]) -> pa.JsonArrayCast an Arrow array to the `Json` arrow storage type.
class
src.datasets.features.features.ValueScalar feature value of a particular data type.
func
src.datasets.features.features.decode_nested_example(schema, obj, token_per_repo_id:Optional[dict[str, Union[str, bool, None]]]=None)Decode a nested example.
func
src.datasets.features.features.encode_nested_example(schema, obj, level=0)Encode a nested example.
func
src.datasets.features.features.require_decoding(feature:FeatureType, ignore_decode_attribute:bool=False) -> boolCheck if a (possibly nested) feature requires decoding.
func
src.datasets.features.features.to_pyarrow_listarray(data:Any, pa_type:_ArrayXDExtensionType) -> pa.ArrayConvert to PyArrow ListArray.
class
src.datasets.features.image.ImageImage [`Feature`] to read image data from an image file.
method
src.datasets.features.image.Image.decode_example(value:dict, token_per_repo_id=None) -> 'PIL.Image.Image'Decode example image file into image data.
method
src.datasets.features.image.Image.embed_storage(storage:pa.StructArray, token_per_repo_id=None, local_files:bool=True, remote_files:bool=True) -> pa.StructArrayEmbed image files into the Arrow array.
method
src.datasets.features.image.Image.encode_example(value:Union[str, bytes, bytearray, dict, np.ndarray, 'PIL.Image.Image']) -> dictEncode example into a format for Arrow.
class
src.datasets.features.mesh.MeshMesh [`Feature`] to read 3D mesh data from a file.
method
src.datasets.features.mesh.Mesh.cast_storage(storage:Union[pa.StringArray, pa.StructArray]) -> pa.StructArrayCast an Arrow array to the Mesh arrow storage type.
method
src.datasets.features.mesh.Mesh.decode_example(value:dict, token_per_repo_id=None) -> Union['trimesh.Trimesh', 'trimesh.Scene']Decode example mesh file.
method
src.datasets.features.mesh.Mesh.embed_storage(storage:pa.StructArray, token_per_repo_id=None, local_files:bool=True, remote_files:bool=True) -> pa.StructArrayEmbed mesh files into the Arrow array.
method
src.datasets.features.mesh.Mesh.encode_example(value:Union[str, bytes, bytearray, dict, 'trimesh.Trimesh', 'trimesh.Scene']) -> dictEncode example into a format for Arrow.
method
src.datasets.features.pdf.Pdf.cast_storage(storage:Union[pa.StringArray, pa.StructArray, pa.ListArray]) -> pa.StructArrayCast an Arrow array to the Pdf arrow storage type.
method
src.datasets.features.pdf.Pdf.decode_example(value:dict, token_per_repo_id=None) -> 'pdfplumber.pdf.PDF'Decode example pdf file into pdf data.
method
src.datasets.features.pdf.Pdf.embed_storage(storage:pa.StructArray, token_per_repo_id=None, local_files:bool=True, remote_files:bool=True) -> pa.StructArrayEmbed PDF files into the Arrow array.
method
src.datasets.features.pdf.Pdf.encode_example(value:Union[str, bytes, bytearray, dict, 'pdfplumber.pdf.PDF']) -> dictEncode example into a format for Arrow.
func
src.datasets.features.pdf.encode_pdfplumber_pdf(pdf:'pdfplumber.pdf.PDF') -> dictEncode a pdfplumber.pdf.PDF object into a dictionary.
func
src.datasets.features.pdf.pdf_to_bytes(pdf:'pdfplumber.pdf.PDF') -> bytesConvert a pdfplumber.pdf.PDF object to bytes.
class
src.datasets.features.video.VideoVideo [`Feature`] to read video data from a video file.
method
src.datasets.features.video.Video.decode_example(value:Union[str, Example], token_per_repo_id:Optional[dict[str, Union[bool, str]]]=None) -> 'VideoDecoder'Decode example video file into video data.
method
src.datasets.features.video.Video.embed_storage(storage:pa.StructArray, token_per_repo_id=None, local_files:bool=True, remote_files:bool=True) -> pa.StructArrayEmbed image files into the Arrow array.
method
src.datasets.features.video.Video.encode_example(value:Union[str, bytes, bytearray, Example, np.ndarray, 'VideoDecoder']) -> ExampleEncode example into a format for Arrow.
func
src.datasets.filesystems.is_remote_filesystem(fs:fsspec.AbstractFileSystem) -> boolChecks if `fs` is a remote filesystem.
func
src.datasets.filesystems.rename(fs:fsspec.AbstractFileSystem, src:str, dst:str)Renames the file `src` in `fs` to `dst`.
class
src.datasets.fingerprint.HasherHasher that accepts python objects as inputs.
class
src.datasets.formatting.formatting.LazyDictA dictionary backed by Arrow data.
class
src.datasets.info.DatasetInfoInformation about a dataset.
class
src.datasets.info.NonMatchingCachedSizesErrorThe prepared split doesn't have expected sizes.
class
src.datasets.io.spark.SparkDatasetReaderA dataset reader that reads from a Spark DataFrame.
class
src.datasets.iterable_dataset.IterableDatasetA Dataset backed by an iterable.
method
src.datasets.iterable_dataset.IterableDataset.add_column(name:str, column:Union[list, np.array]) -> 'IterableDataset'Add column to Dataset.
method
src.datasets.iterable_dataset.IterableDataset.cast(features:Features) -> 'IterableDataset'Cast the dataset to a new set of features.
method
src.datasets.iterable_dataset.IterableDataset.cast_column(column:str, feature:FeatureType) -> 'IterableDataset'Cast column to feature for decoding.
method
src.datasets.iterable_dataset.IterableDataset.column_names() -> Optional[list[str]]Names of the columns in the dataset.
method
src.datasets.iterable_dataset.IterableDataset.load_state_dict(state_dict:dict) -> NoneLoad the state_dict of the dataset.
method
src.datasets.iterable_dataset.IterableDataset.num_columns() -> Optional[int]Number of columns in the dataset.
method
src.datasets.iterable_dataset.IterableDataset.reshard() -> 'IterableDataset'Reshard the dataset if possible, i.e.
method
src.datasets.iterable_dataset.IterableDataset.state_dict() -> dictGet the current state_dict of the dataset.
method
src.datasets.iterable_dataset.IterableDataset.to_csv(path_or_buf:Union[PathLike, BinaryIO], batch_size:Optional[int]=None, storage_options:Optional[dict]=None, **to_csv_kwargs) -> intExports the dataset to csv.
method
src.datasets.iterable_dataset.IterableDataset.to_dict(batch_size:Optional[int]=None, batched:bool=False) -> Union[dict, Iterator[dict]]Returns the dataset as a Python dict.
method
src.datasets.iterable_dataset.IterableDataset.to_list() -> listReturns the dataset as a Python list.
method
src.datasets.iterable_dataset.IterableDataset.with_format(type:Optional[str]=None) -> 'IterableDataset'Return a dataset with the specified format.
func
src.datasets.load.increase_load_count(name:str)Update the download count of a dataset.
class
src.datasets.packaged_modules.arrow.arrow.ArrowConfigBuilderConfig for Arrow.
class
src.datasets.packaged_modules.audiofolder.audiofolder.AudioFolderConfigBuilder Config for AudioFolder.
class
src.datasets.packaged_modules.conll.conll.ConllConfigBuilderConfig for CoNLL-style files.
class
src.datasets.packaged_modules.csv.csv.CsvConfigBuilderConfig for CSV.
class
src.datasets.packaged_modules.folder_based_builder.folder_based_builder.FolderBasedBuilderConfigBuilderConfig for AutoFolder.
class
src.datasets.packaged_modules.hdf5.hdf5.HDF5ConfigBuilderConfig for HDF5.
class
src.datasets.packaged_modules.iceberg.iceberg.IcebergConfigBuilderConfig for Apache Iceberg format.
class
src.datasets.packaged_modules.imagefolder.imagefolder.ImageFolderConfigBuilderConfig for ImageFolder.
class
src.datasets.packaged_modules.json.json.JsonConfigBuilderConfig for JSON.
class
src.datasets.packaged_modules.lance.lance.LanceConfigBuilderConfig for Lance format.
class
src.datasets.packaged_modules.meshfolder.meshfolder.MeshFolderConfigBuilderConfig for MeshFolder.
class
src.datasets.packaged_modules.niftifolder.niftifolder.NiftiFolderConfigBuilderConfig for NiftiFolder.
class
src.datasets.packaged_modules.pandas.pandas.PandasConfigBuilderConfig for Pandas.
class
src.datasets.packaged_modules.parquet.parquet.ParquetConfigBuilderConfig for Parquet.
class
src.datasets.packaged_modules.pdffolder.pdffolder.PdfFolderConfigBuilderConfig for ImageFolder.
class
src.datasets.packaged_modules.spark.spark.SparkConfigBuilderConfig for Spark.
class
src.datasets.packaged_modules.sql.sql.SqlConfigBuilderConfig for SQL.
class
src.datasets.packaged_modules.text.text.TextConfigBuilderConfig for text files.
class
src.datasets.packaged_modules.videofolder.videofolder.VideoFolderConfigBuilderConfig for ImageFolder.
func
src.datasets.packaged_modules.webdataset._tenbin.str64(s)Convert a string to an int64.
func
src.datasets.packaged_modules.webdataset._tenbin.unstr64(i)Convert an int64 to a string.
class
src.datasets.packaged_modules.xml.xml.XmlConfigBuilderConfig for xml files.
class
src.datasets.search.BaseIndexBase class for indexing
method
src.datasets.search.BaseIndex.load(file:Union[str, PurePath]) -> 'BaseIndex'Deserialize the index from disk
method
src.datasets.search.BaseIndex.save(file:Union[str, PurePath])Serialize the index on disk
method
src.datasets.search.BaseIndex.search(query, k:int=10, **kwargs) -> SearchResultsTo implement.
method
src.datasets.search.BaseIndex.search_batch(queries, k:int=10, **kwargs) -> BatchedSearchResultsFind the nearest examples indices to the query.
class
src.datasets.search.ElasticSearchIndexSparse index using Elasticsearch.
method
src.datasets.search.ElasticSearchIndex.add_documents(documents:Union[list[str], 'Dataset'], column:Optional[str]=None)Add documents to the index.
method
src.datasets.search.ElasticSearchIndex.search(query:str, k=10, **kwargs) -> SearchResultsFind the nearest examples indices to the query.
class
src.datasets.search.FaissIndexDense index using Faiss.
method
src.datasets.search.FaissIndex.load(file:Union[str, PurePath], device:Optional[Union[int, list[int]]]=None, storage_options:Optional[dict]=None) -> 'FaissIndex'Deserialize the FaissIndex from disk
method
src.datasets.search.FaissIndex.save(file:Union[str, PurePath], storage_options:Optional[dict]=None)Serialize the FaissIndex on disk
method
src.datasets.search.FaissIndex.search(query:np.array, k=10, **kwargs) -> SearchResultsFind the nearest examples indices to the query.
method
src.datasets.search.FaissIndex.search_batch(queries:np.array, k=10, **kwargs) -> BatchedSearchResultsFind the nearest examples indices to the queries.
class
src.datasets.search.IndexableMixinAdd indexing features to `datasets.Dataset`
method
src.datasets.search.IndexableMixin.drop_index(index_name:str)Drop the index with the specified column.
method
src.datasets.search.IndexableMixin.get_index(index_name:str) -> BaseIndexList the `index_name`/identifiers of all the attached indexes.
method
src.datasets.search.IndexableMixin.save_faiss_index(index_name:str, file:Union[str, PurePath], storage_options:Optional[dict]=None)Save a FaissIndex on disk.
class
src.datasets.splits.NamedSplitDescriptor corresponding to a named split (train, test, ...).
class
src.datasets.splits.Split`Enum` for dataset splits.
class
src.datasets.splits.SplitBaseAbstract base class for Split compositionality.
class
src.datasets.splits.SplitDictSplit info object.
method
src.datasets.splits.SplitDict.add(split_info:SplitInfo)Add the split info.
class
src.datasets.splits.SplitGeneratorDefines the split information for the generator.
class
src.datasets.splits.SplitReadInstructionObject containing the reading instruction for the dataset.
class
src.datasets.splits.SubSplitInfoWrapper around a sub split info.
class
src.datasets.table.InMemoryTableThe table is said in-memory when it is loaded into the user's RAM.
method
src.datasets.table.InMemoryTable.add_column(*args, **kwargs)Add column to Table at position.
method
src.datasets.table.InMemoryTable.filter(*args, **kwargs)Select records from a Table.
method
src.datasets.table.InMemoryTable.flatten(*args, **kwargs)Flatten this Table.
method
src.datasets.table.InMemoryTable.from_arrays(*args, **kwargs)Construct a Table from Arrow arrays.
method
src.datasets.table.InMemoryTable.select(*args, **kwargs)Select columns of the table.
class
src.datasets.table.TableWraps a pyarrow Table by using composition.
method
src.datasets.table.Table.add_column(*args, **kwargs)Add column to Table at position.
method
src.datasets.table.Table.append_column(*args, **kwargs)Append column at end of columns.
method
src.datasets.table.Table.cast(*args, **kwargs)Cast table values to another schema.
method
src.datasets.table.Table.column_names()Names of the table's columns.
method
src.datasets.table.Table.columns()List of all columns in numerical order.
method
src.datasets.table.Table.filter(*args, **kwargs)Select records from a Table.
method
src.datasets.table.Table.flatten(*args, **kwargs)Flatten this Table.
method
src.datasets.table.Table.num_columns()Number of columns in this table.
method
src.datasets.table.Table.num_rows()Number of rows in this table.
method
src.datasets.table.Table.schema()Schema of the table and its columns.
method
src.datasets.table.Table.select(*args, **kwargs)Select columns of the table.
method
src.datasets.table.Table.set_column(*args, **kwargs)Replace column in Table at position.
method
src.datasets.table.Table.slice(*args, **kwargs)Compute zero-copy slice of this Table.
method
src.datasets.table.Table.to_reader(max_chunksize:Optional[int]=None)Convert the Table to a RecordBatchReader.
method
src.datasets.table.Table.validate(*args, **kwargs)Perform validation checks.
func
src.datasets.table.cast_table_to_schema(table:pa.Table, schema:pa.Schema)Cast a table to the arrow schema.
func
src.datasets.table.concat_tables(tables:list[Table], axis:int=0) -> TableConcatenate tables.
func
src.datasets.table.list_table_cache_files(table:Table) -> list[str]Get the cache files that are loaded by the table.
func
src.datasets.table.table_cast(table:pa.Table, schema:pa.Schema)Improved version of `pa.Table.cast`.
func
src.datasets.table.table_flatten(table:pa.Table)Improved version of `pa.Table.flatten`.
func
src.datasets.table.table_iter(table:Table, batch_size:int, drop_last_batch=False) -> Iterator[pa.Table]Iterate over sub-tables of size `batch_size`.
class
src.datasets.utils._dataset_viewer.DatasetViewerErrorDataset viewer error.
func
src.datasets.utils._dill.dump(obj, file)Pickle an object to a file.
func
src.datasets.utils._dill.dumps(obj)Pickle an object to a string.
class
src.datasets.utils._filelock.FileLockA `filelock.FileLock` initializer that handles long paths.
func
src.datasets.utils.experimental.experimental(fn:Callable) -> CallableDecorator to flag a feature as experimental.
class
src.datasets.utils.file_utils.FilesIterableAn iterable of paths from a list of directories or files
func
src.datasets.utils.file_utils.get_authentication_headers_for_url(url:str, token:Optional[Union[str, bool]]=None) -> dictHandle the HF authentication
func
src.datasets.utils.file_utils.relative_to_absolute_path(path:T) -> TConvert relative path to absolute path.
func
src.datasets.utils.file_utils.xgetsize(path, download_config:Optional[DownloadConfig]=None) -> intExtend `os.path.getsize` function to support remote files.
func
src.datasets.utils.file_utils.xisdir(path, download_config:Optional[DownloadConfig]=None) -> boolExtend `os.path.isdir` function to support remote files.
func
src.datasets.utils.file_utils.xisfile(path, download_config:Optional[DownloadConfig]=None) -> boolExtend `os.path.isfile` function to support remote files.
func
src.datasets.utils.file_utils.xlistdir(path:str, download_config:Optional[DownloadConfig]=None) -> list[str]Extend `os.listdir` function to support remote files.
class
src.datasets.utils.info_utils.VerificationMode`Enum` that specifies which verification checks to run.
func
src.datasets.utils.info_utils.get_size_checksum_dict(path:str, record_checksum:bool=False) -> dictCompute the file size and the sha256 checksum of a file
func
src.datasets.utils.logging.disable_propagation() -> NoneDisable propagation of the library log outputs.
func
src.datasets.utils.logging.enable_propagation() -> NoneEnable propagation of the library log outputs.
func
src.datasets.utils.logging.get_logger(name:Optional[str]=None) -> logging.LoggerReturn a logger with the specified name.
func
src.datasets.utils.logging.set_verbosity(verbosity:int) -> NoneSet the level for the Hugging Face Datasets library's root logger.
class
src.datasets.utils.metadata.MetadataConfigsShould be in format {config_name: {**config_params}}.
class
src.datasets.utils.py_utils.NonMutableDictDict where keys can only be added but not modified.
class
src.datasets.utils.py_utils.classpropertyDescriptor to be used as decorator for @classmethods.
func
src.datasets.utils.py_utils.string_to_dict(string:str, pattern:str) -> Optional[dict[str, str]]Un-format a string using a python f-string pattern.
func
src.datasets.utils.py_utils.temp_seed(seed:int, set_pytorch=False, set_tensorflow=False)Temporarily set the random seed.
class
src.datasets.utils.version.VersionDataset version `MAJOR.MINOR.PATCH`.
func
utils.release.get_version()Reads the current version in the __init__.
func
utils.release.global_version_update(version)Update the version in all needed files.
func
utils.release.post_release_work()Do all the necesarry post-release steps.
About this data
These signatures were extracted from the public source of huggingface/datasets
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.