Articles by Gary Hutson

Few Shot Learning with SetFit

February 24, 2023 | Gary Hutson

HuggingFace have been working on a model that can be used for small datasets. The aim is to leverage the pretrained transformer and use contrastive learning to augment and extend the dataset, by using similar labels that share a same dimensional space. In this tutorial I will talk you through ...
[...Read more...]

Stable Diffusion application with Streamlit

December 23, 2022 | Gary Hutson

This combines my love of Deep Learning and Transformer frameworks, with the ability to generate images from textual prompts. First of all I think I should explain a little of what is meant by stable diffusion, and this will be detailed in the next section. Then we will move on ...
[...Read more...]

I know dictionaries, but what is a DefaultDict?

June 13, 2022 | Gary Hutson

The supporting repository and code file is: This is aimed as a short article to explain why you would want to use default dictionaries. What is a defaultdict I hear you ask? A defaultdict is a container like dictionary present in ...
[...Read more...]

Narly NamedTuples in Python

May 23, 2022 | Gary Hutson

NamedTuples are an excellent way to make your Python code more useful and readable. In short a NamedTuple is an alternative to the built-in tuple . This extension type enhances standard tuples so that their elements can be accessed by both their attribute name and the positional index. This is really ...
[...Read more...]
1 2 3 4