# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")
References:
## | |
## Python implementations of the search relevance evaluation metrics described at | |
## https://opensourceconnections.com/blog/2020/02/28/choosing-your-search-relevance-metric/ | |
## | |
## | |
def precision(docs): | |
return sum(docs) / len(docs) if docs else 0 | |
def avg_precision(docs): |
# Animated dplyr joins with gganimate | |
# * Garrick Aden-Buie | |
# * garrickadenbuie.com | |
# * MIT License: https://opensource.org/licenses/MIT | |
# Note: I used Fira Sans and Fira Mono fonts. | |
# Use search and replace to use a different font if Fira is not available. | |
library(tidyverse) | |
library(gganimate) |
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")
References:
# make a nice viridis GMRF tesselation for Richard | |
rm(list = ls()) | |
set.seed(1) | |
library(INLA) | |
library(raster) | |
library(viridis) | |
library(fields) | |
# grid sizes for sampling the GRF and for the final image |
library(shiny) | |
shinyServer(function(input, output, session) { | |
observe({ | |
if(input$tv == "All, but C") { | |
updateCheckboxGroupInput(session, "check2", label = NULL, choices = NULL, | |
selected = c("A", "B", "D", "E")) | |
} | |
if(input$tv == "Only C or D") { |