MCPcopy Create free account
hub / github.com/PolymathicAI/AstroCLIP / setup

Method setup

astroclip/data/datamodule.py:25–27  ·  view source on GitHub ↗
(self, stage: str)

Source from the content-addressed store, hash-verified

23 self.save_hyperparameters()
24
25 def setup(self, stage: str) -> None:
26 self.dataset = datasets.load_from_disk(self.hparams.path)
27 self.dataset.set_format(type="torch", columns=self.hparams.columns)
28
29 def train_dataloader(self):
30 return torch.utils.data.DataLoader(

Callers 2

cross_match_provabgsFunction · 0.95
embed_astroclipFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected