GIMP 3.0 has released and has numerous new features making it a better choice for image editing than GIMP 2.10. However one issue is that…
Tag: Python
When doing rapid prototyping with Cursor AI, it is useful to keep you environments separate. Venv can help with this. But how do you get…
Last month I produced a proof of concept zero shot categoriser for images using OpenAI’s GPT-4 Vision-Language model (VLM) capabilities. However this had the disadvantage…
Streamlit is a very useful Python package for creating interactive web pages. It has excellent documentation and offers a quick and easy way to prototype…
The usual approach to prediction problems these days is to create a machine learning model. However machine learning models can struggle to train on sparse…
I recently needed to handle some arguments for a command line Python program. I considered using the built in sys.argv approach, but decided that it…
N-grams are a well established method in natural language processing. They can be used in situations like predictive text, sentiment analysis and other useful task.…
Recently I needed to plot some geographic data I had been working on in Pyspark on DataBricks. I did a bit of research and found…
PySpark window functions are useful when you want to examine relationships within groups of data rather than between groups of data as for groupBy. To…
Recently I needed to check for equality between Pyspark dataframes as part of a test suite. To my surprise I discovered that there is no…