load_zinc250k¶
ZINC250k — unlabeled molecules. Deprecated: this function calls load_dataset and will be removed.
Use instead¶
from torch_molecule.datasets import load_dataset
data = load_dataset("zinc250k", targets=[])
Reference¶
- load_zinc250k(local_dir='torchmol_data', return_local_data_path=False)[source]¶
Deprecated: use
load_dataset("zinc250k", targets=[]);targetisNone.- Parameters:
local_dir (str, default="torchmol_data") – Directory used to cache downloaded files. Existing files are reused.
return_local_data_path (bool, default=False) – Also return the cache directory.
- Returns:
dataset (SMILESDataset) –
datais a list of canonical SMILES.targetis a NumPy array of shape(n_molecules, n_targets), withNaNfor missing measurements.local_dir (str, optional) – The cache directory, returned alongside
datasetonly whenreturn_local_data_path=True.
- Return type:
See Datasets for caching, custom data, and train/test splits.