Articles by Posts | Joshua Cook

Notes on ‘Deep Work’

September 18, 2021 | Posts | Joshua Cook

I have finally read the book Deep Work where he describes the reasons and methods for focussing on maximizing “deep” work over “shallow” work. From the popularity of this book and my own experience with some of the strategies ex... [Read more...]

Xcode Logger Notes

February 16, 2021 | Posts | Joshua Cook

This post is to primarily serve as a repository for my notes on the Explore logging in Swift video originally presented at WWDC 2020. It provides a general overview of how to use the logging system, then touches on a few specific features to keep in mi...
[Read more...]

Fitting a spline with PyMC3

November 14, 2020 | Posts | Joshua Cook

Introduction Often, the model we want to fit is not a perfect line between some $x$ and $y$. Instead, the parameters of the model are expected to vary over $x$. There are multiple ways to handle this situation, one of which is to fit a spline. The spli...
[Read more...]

Colorize black-and-white photos

November 14, 2020 | Posts | Joshua Cook

DeepAI is a research company that develops a wide variety of deep neural network (DNN) models using the bleeding edge of AI research. For example, they have built models for sentiment analysis of text, nudity detection, artistic style transfer, text s...
[Read more...]

Riddler: Can You Beat MLB Recods?

July 18, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express link From Taylor Firman comes an opportunity to make baseball history: This year, Major League Baseball announced it will play a shortened 60-game season, as opposed to the typical 162-game season. Baseball is a sport of numbers and statistics, and so Taylor wondered about the impact ...
[Read more...]

Riddler: Can You Just Keep Turning?

June 27, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express link In Riddler City, the city streets follow a grid layout, running north-south and east-west. You’re driving north when you decide to play a little game. Every time you reach an intersection, you randomly turn left or right, each with a 50 percent chance. After driving ...
[Read more...]

Riddler: Can You Track The Delirious Ducks?

June 13, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Classic link After a long night of frivolous quackery, two delirious ducks are having a difficult time finding each other in their pond. The pond happens to contain a 3×3 grid of rocks. Every minute, each duck randomly swims, independently of the other duck, from one rock to ...
[Read more...]

Riddler: Can You Roll The Perfect Bowl?

May 31, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express link At the recent World Indoor Bowls Championships in Great Yarmouth, England, one of the rolls by Nick Brett went viral. Here it is in all its glory: 12/10 on the mindblowing scale ???? #SCtop10(via @BBCSport) pic.twitter.com/6pN6ybzVel — SportsCenter (@SportsCenter) January 23, 2020 In order for ... [Read more...]

Riddler: Can You Tell When The Snow Started?

May 9, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express ( Link to the original article.) From Patrick Mayor comes a question about something we’re doing these days to keep ourselves and others safe: social distancing. You’re walking along the middle of a wide sidewalk when you see someone walking toward you from the other ...
[Read more...]

Riddler: Can You Flip Your Way To Freedom?

May 2, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express Dakota Jones is back in action. In her quest to locate the Temple of Diametra, she has found another highly symmetric crystal. However, nefarious agents have again gotten wind of her plans, and now Dakota and the crystal are nowhere to be found. And so, you ... [Read more...]

Riddler: Can You Solve The Chess Mystery?

April 25, 2020 | Posts | Joshua Cook

Summary The Riddler is a weekly puzzle provided by FiveThirtyEight. This week’s puzzle involves finding the path used by the knight to kill the opposing queen in a game of chess. Below, I show how I solved puzzle using two methods: a siumulation of the chessboard and by building ...
[Read more...]

Caching in R

April 4, 2020 | Posts | Joshua Cook

Introduction Caching intermediate objects in R can be an efficient way to avoid re-evaluating long-running computations. The general process is always the same: run the chunk of code once, store the output to disk, and load it up the next time the same chunk is run. There are, of course, ... [Read more...]

Caching in R

April 4, 2020 | Posts | Joshua Cook

Introduction Caching intermediate objects in R can be an efficient way to avoid re-evaluating long-running computations. The general process is always the same: run the chunk of code once, store the output to disk, and load it up the next time the same chunk is run. There are, of course, ... [Read more...]

‘mustashe’ Explained

March 22, 2020 | Posts | Joshua Cook

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time ... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)