- 5
- 3 898
Fabrizio Damicelli
Приєднався 21 вер 2021
Python, Machine Learning, Data Science, Scientific Computing
PyTorch DataLoader: Understand and implement custom collate function
Understand DataLoader's inner workings and bring your data pipeline to the next level with this gentle introduction to the useful `collate_fn` in PyTorch DataLoader. We will work through a concrete example of dynamic collate to make dataloading more efficient.
Code: fabridamicelli.github.io/blog/pytorch/python/data/neural-nets/2023/09/13/pytorch-dataloader-collate.html
------------- CONNECT ------------------
Twitter: fabridamicelli
Blog: fabridamicelli.github.io
GitHub: github.com/fabridamicelli
Code: fabridamicelli.github.io/blog/pytorch/python/data/neural-nets/2023/09/13/pytorch-dataloader-collate.html
------------- CONNECT ------------------
Twitter: fabridamicelli
Blog: fabridamicelli.github.io
GitHub: github.com/fabridamicelli
Переглядів: 2 580
Відео
Python more-itertools unique_everseen
Переглядів 1882 роки тому
A quick example of how to use more_itertools.unique_everseen in Python. more-itertools documentation: pypi.org/project/more-itertools/ CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli
Python collections.ChainMap
Переглядів 4212 роки тому
The built-in collections module is a handy bag of tools to be aware of. Here we explore collections.ChainMap, an elegant solution to efficiently carry out a look up over more than one dictionary. CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli
Merging Python dictionaries - a functional take
Переглядів 1073 роки тому
An elegant way to merge *many* dictionaries in Python by leveraging some functional tools. CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli
Python starmap (itertools): A short and easy intro
Переглядів 6093 роки тому
A quick introduction to itertools.starmap in Python. Blogpost: fabridamicelli.github.io/blog/python/itertools/functional-programming/python-standard-library/2021/09/18/starmap.html Official documentation: docs.python.org/3/library/itertools.html#itertools.starmap CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli/
Great work! I appreciate the clear explanation.😇
Thanks! This was the exact problem I wanted to solve.
Nice job !
Good clear explanation!
came here from Twitter. Good work. Thanks, It really helped me in understanding the fundamentals better.
Hi there, thanks for your feedback, glad you learnt something :)