Open in app

Sign In

Write

Sign In

David Gilbertson
David Gilbertson

30K Followers

Home

About

Published in

Better Programming

·Updated Jun 30

87 Lesser-known Python Features

This post is for people who use Python daily, but have never actually sat down and read through all the documentation. — If you’ve been using Python for years and know enough to get the job done, it’s probably not a wise use of your time to read through several thousand pages of documentation just to maybe discover a handful of new tricks. …

Python

43 min read

87 Lesser-known Python Features
87 Lesser-known Python Features
Python

43 min read


Published in

Better Programming

·Jun 11

Team GPT: Simulating Multi-agent Collaboration With Role-playing Prompts

Have you ever been to a great meeting? The right people with a diverse set of skills, knowledge, and perspectives, where all the inputs are synthesized into a single, coherent output that addresses the issue being discussed. I have (twice!) and it’s a marvelous thing. The only problem is that…

AI

9 min read

Team GPT: Simulating Multi-agent Collaboration With Role-playing Prompts
Team GPT: Simulating Multi-agent Collaboration With Role-playing Prompts
AI

9 min read


Published in

Better Programming

·Jun 4

The mean misleads, part 2: more data for the doubters

Some background A few weeks ago, I published The mean misleads: why the minimum is the true measure of a function’s run time, where I explained that taking the means of the run times of two functions (with the aim of selecting the faster one) will produce incorrect results more often than…

Programming

10 min read

The mean misleads, part 2: more data for the doubters
The mean misleads, part 2: more data for the doubters
Programming

10 min read


Published in

Better Programming

·Updated May 31

A Keyframe-style Learning Rate Scheduler for PyTorch

When it comes to defining learning rate schedules in PyTorch, you have plenty of options. 15 different scheduler classes, to be exact. This offers good flexibility, but it sometimes means that making a small change to your learning rate schedule requires switching to a different scheduler or combining multiple schedulers. — It struck me one day that defining how a learning rate should change over the course of a training run is similar to defining an animation, with a combination of:

Machine Learning

10 min read

A Keyframe-style Learning Rate Scheduler for PyTorch
A Keyframe-style Learning Rate Scheduler for PyTorch
Machine Learning

10 min read


Published in

Better Programming

·Updated May 27

The mean misleads: why the minimum is the true measure of a function’s run time

Imagine: you’ve got a function and you’d like to know how long it takes to run, on average. So you run the function a few times, measuring how long it takes each time, then take the average of those times. That couldn’t possibly be wrong, could it? In this post…

Programming

16 min read

The mean misleads: why the minimum is the true measure of a function’s run time
The mean misleads: why the minimum is the true measure of a function’s run time
Programming

16 min read


Published in

Better Programming

·Updated May 5

2D Tokenization for Large Language Models

This article is about how we process text before passing it to large language models, the problems with this approach, and an alternative solution. — The Problem With (1D) Tokenization When passing text to a Large Language Model (LLM), text is broken down into a sequence of words and sub-words. This sequence of tokens is then replaced with a sequence of integers and passed to the model. LLMs contain an embedding matrix to store a representation for each of these…

Data Science

18 min read

2D Tokenization for Large Language Models
2D Tokenization for Large Language Models
Data Science

18 min read


Published in

Better Programming

·Jan 29

Can you learn machine learning in a year?

This post is for anyone considering a career move into the field of machine learning. Of course, the answer to the titular question is “it depends”. But what does it depend on, exactly? Rather than try and give some generic answer to the question that suits no one in particular…

AI

29 min read

Can you learn machine learning in a year?
Can you learn machine learning in a year?
AI

29 min read


Aug 6, 2021

Smart review: introduction

There are 7.674 billion people on this planet. Of those, how many are working on innovations that will make the world a better place? A few thousand people? Maybe a hundred thousand, a million? And what about the other 7.673 billion people? Sprinkled throughout are some truly brilliant individuals, people…

Climate Change

14 min read

Smart review: introduction
Smart review: introduction
Climate Change

14 min read


Jul 5, 2021

The scientific evidence proving ‘anti-vaxxers’ right

The world is currently in the process of rolling out a vaccine that is killing people. Every day, millions of people are getting a jab in the arm that could be their last. This is not disputed. There is, of course, another option: not getting the vaccine. In fact, there…

Covid-19

3 min read

The scientific evidence proving ‘anti-vaxxers’ right
The scientific evidence proving ‘anti-vaxxers’ right
Covid-19

3 min read


May 12, 2021

We can end email scams tomorrow. Here’s how.

Putting an end to email scams is so simple that I’ll explain the entire process in one word in the second paragraph. The rest of the article is just padding. Ready to learn what you need to do? Ready?!…. Respond. Now for the padding… The scamming industry is profitable because…

Computer Science

16 min read

We can end email scams tomorrow. Here’s how.
We can end email scams tomorrow. Here’s how.
Computer Science

16 min read

David Gilbertson

David Gilbertson

30K Followers

I like machine learning stuff.

Following
  • Addy Osmani

    Addy Osmani

  • Google Earth

    Google Earth

  • Eric Elliott

    Eric Elliott

  • Ev Williams

    Ev Williams

  • Nikos Kafritsas

    Nikos Kafritsas

See all (35)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams