LocalDatasetLoader¶
- class LocalDatasetLoader(directory=None)[source]¶
Bases:
chemicalx.data.datasetloader.DatasetLoader
,abc.ABC
A dataset loader that processes and caches data locally.
Attributes Summary
Methods Summary
Get the context feature set.
Get the drug feature set.
Get the labeled triples dataframe.
Download and preprocess the dataset.
write_contexts
(contexts)Write the context feature set.
write_drugs
(drugs)Write the drug data.
write_labels
(df)Write the labeled triples dataframe.
Attributes Documentation
Methods Documentation
- abstract preprocess()[source]¶
Download and preprocess the dataset.
The implementation of this function should write to all three of
self.drugs_path
,self.contexts_path
, andself.labels_path
using respectivelywrite_drugs()
,write_contexts()
, andwrite_labels()
.