From the course: Faster Python Code

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Joblib

Joblib - Python Tutorial

From the course: Faster Python Code

Start my 1-month free trial

Joblib

- [Instructor] There are time that we like to keep the computation cache between program runs. For example, when I do some data analysis, it's common to have several stages that takes a long time. There are cases when I need to stop and move on to another task, and when I get back, I'd like to avoid running these low computations again. There are cache services like Redis and memcached, but I'd like to avoid installing servers and configuring them. Also, both of these services will lose all data if they are restarted. Let's look at the simplest solution. Joblib is a third party package that offers two things, on disk caching and parallel computing. We're going to look at the former now. You can install joblib with pip or Condor. Let's write a small spellchecker. We're going to compare a word to a list of dictionary words. For distance between the word, we're going to use Levenshtein distance, also known as the edit distance. It counts how many transformations, add, delete, change, are…

Contents