mlx_graphs.datasets.QM7bDataset#
- class mlx_graphs.datasets.QM7bDataset(base_dir: str | None = None)[source]#
QM7b dataset from the “MoleculeNet: A Benchmark for Molecular Machine Learning” paper, consisting of 7,211 molecules with 14 regression targets.
- Parameters:
base_dir (
Optional[str]) – Directory where to store dataset files. Default is in the local directory.mlx_graphs_data/.
Methods
__init__([base_dir])download()Download the dataset at self.raw_path.
load()Load the processed dataset
process()Process the dataset and store data in self.data
save()Save the processed dataset
Attributes
nameName of the dataset
num_edge_classesReturns the number of edge classes to predict.
num_edge_featuresReturns the number of edge features.
num_graph_classesReturns the number of graph classes to predict.
num_graph_featuresReturns the number of graph features.
num_graphsReturns the number of graphs in the dataset.
num_itemsReturns the number of items in the dataset.
num_node_classesReturns the number of node classes to predict.
num_node_featuresReturns the number of node features.
processed_pathThe path where raw files are stored.
raw_pathThe path where raw files are stored.