Shallow Learnings
  • About Me
Categories
All (9)
aws (1)
bash (2)
big data (1)
collaborative filtering (2)
d3 (1)
dask (1)
data visualization (1)
django (1)
docker (1)
jupyter (3)
machine learning (1)
matplotlib (1)
numpy (2)
pandas (2)
performance (1)
productivity (2)
py-spy (1)
python (7)
recommender systems (3)
seaborn (1)
ssh (1)
tmux (1)

Posts

Profiling Jupyter Notebook Code with py-spy

jupyter
py-spy
performance
python

When you sync your Jupyter notebooks with Jupytext, you get to keep all the benefits of Jupyter notebooks while also being able to pass your code through a profiler like py-spy to get a rich, interactive visualization that helps you quickly understand where the bottlenecks are.

May 14, 2021
Ben Lindsay

Comparing Collaborative Filtering Methods

recommender systems
collaborative filtering
python
numpy
pandas
seaborn
jupyter
matplotlib

I wanted to dive into the fundamentals of collaborative filtering and recommender systems, so I implemented a few common methods and compared them.

Oct 14, 2019
Ben Lindsay

Deploying a Cookiecutter Django Site on AWS

aws
django
docker
python

Step-by-step walkthrough of deploying a Django app to AWS using the Django Cookiecutter template.

Jul 23, 2019
Ben Lindsay

Running Jupyter Lab Remotely

bash
jupyter
tmux
ssh
productivity

I have a research cluster where I do most of my analyses for my PhD work, and running Jupyter Lab directly on the cluster means I don’t have to copy files between the cluster and my desktop.

Apr 30, 2018
Ben Lindsay

Analyzing Larger-than-Memory Data on your Laptop

python
recommender systems
dask
pandas
big data

Dask is an amazing Python library that lets you do all your Pandas-style dataframe manipulations with just a few simple tweaks so you don’t have to worry about Jupyter freezing up.

Mar 10, 2017
Ben Lindsay

Taking Advantage of Sparsity in the ALS-WR Algorithm

python
machine learning
collaborative filtering
recommender systems

A little tweak to some code from a great tutorial speeds up computation by taking advantage of sparsity

Feb 11, 2017
Ben Lindsay

Dealing with Grid Data in Python

python
numpy

Some tricks for dealing with 2D and 3D grid data in python.

Dec 8, 2016
Ben Lindsay

Interactive D3 Map of Baby Name Popularity

python
d3
data visualization

Pick a name and slide the slider to see how its popularity changed over time across the US

Jul 24, 2016
Ben Lindsay

Parameter Sweep Bash Script

bash
productivity
In my polymer simulation research, often my studies involve running a bunch of simulations where I pick one or more input parameters and change them over a range of values…
Dec 19, 2015
Ben Lindsay
No matching items