magnet.io.load_mat_dataset#

magnet.io.load_mat_dataset(dataset_path: str) MeshDataset#

Load mesh graph dataset from MATLAB files.

Loads the adjacency, centroids, volumes of a mesh dataset from a .mat files. The dataset folder should contain 3 .mat files named ‘AdjacencyMatrices’, ‘CoordMatrices’, ‘AreaVectors’ with fields of the same name.

This is intended mainly for training GNNs, as the dataset does not contain the full connectivity data of the meshes.

Parameters:

dataset_path (str) – Path of the folder containing file containing the datset, or folder path of the same name containing said file.

Returns:

Loaded dataset.

Return type:

MeshDataset

See also

load_graph_dataset

Load mesh graph dataset from .npz file.