pytspl.io.dataset_loader

Module for preprocessing and loading datasets for analysis.

Attributes

DATASETS

Functions

list_datasets(→ list)

List the available datasets.

load_dataset(→ tuple)

Load the dataset and return the simplicial complex

Module Contents

pytspl.io.dataset_loader.DATASETS
pytspl.io.dataset_loader.list_datasets() list[source]

List the available datasets.

Returns:

list: The list of available datasets.

pytspl.io.dataset_loader.load_dataset(dataset: str) tuple[source]

Load the dataset and return the simplicial complex and coordinates.

Args:

dataset (str): The name of the dataset.

ValueError:

If the dataset is not found.

Returns:

SimplicialComplex: The simplicial complex of the dataset. dict: The coordinates of the nodes. If the coordinates do not exist, the coordinates are generated using spring layout. dict: The flow data of the dataset. If the flow data does not exist, an empty dictionary is returned.