Skip to content

Luke Salamone's Blog

  • By Luke Salamone
  • Based in United States of America
  • Roughly 10 posts per year
  • First post on

Posts per year

Data for this chart is available in the table below
Posts per year
Year starting Posts
2020 5
2021 17
2022 12
2023 5
2024 10

Any gaps could be due to errors when fetching the blog’s feed.

Most recent posts

Space Is Really Big
More than 30 earths could fit between the earth and the moon. Our elementary school models of the solar system really undersell how big space is. The problem is, space is too big and human …
On , 80 words
Custom PyTorch Collate Function
If your Dataset class looks something like class MyDataset(Dataset): # ... boilerplate ... def __getitem__(self, idx): item = self.data[idx] return item['anchor'], item['positive'], item['negative'] your collate function should be def collate_fn(data): anchors, pos, neg = zip(*data) …
On , 83 words
Very Large Datasets in PyTorch
In God we trust. All others must bring data. ~ W. Edwards Deming Datasets that fit in memory For simple machine learning problems, your PyTorch dataset class probably looks something like this: class SimpleDataset(Dataset): def …
On , 75 words