Skip to content

Instantly share code, notes, and snippets.

View woobe's full-sized avatar

Jo-fai Chow woobe

View GitHub Profile
ledell / h2oautoml_monotonic_constraints.R
Last active April 28, 2020 23:19
Monotonic constraints in H2O AutoML
View h2oautoml_monotonic_constraints.R
# Example of monotonic constraints in H2O AutoML (using h2o v3.30.0.1)
# monotone constraints:
# H2O AutoML:
# Import the prostate dataset
file <- ""
prostate <- h2o.importFile(file)
dweldon /
Last active April 8, 2022 11:18
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
ledell / h2o_rf_sigopt_demo_iris.R
Last active June 3, 2017 04:56
Demo of how to use the SigOpt API with H2O in R
View h2o_rf_sigopt_demo_iris.R
# Set API Key
# Start a local H2O cluster for training models
h2o.init(nthreads = -1)
# Load a dataset
y <- "Species"
View Examining Your Presence on Twitter with Python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 00-shiny-interactive-graphics.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
timelyportfolio /
Last active April 26, 2016 08:10
R + d3.js Parallel Coordinates of partykit


This d3.js parallel coordinates plot is another experiment in how we might use interactive plots in Javascript to represent a partykit / rpart object from R. The example builds on this d3.js collapsible tree plot. Eventually, it would be nice to combine the tree and parallel coordinates into a layout with synced interactivity.

### Almost No [`rCharts`]( Also, this is fairly different from most of my interactive plots from R in that it almost completely avoids [`rCharts`]( (almost because I did use its `publish` to make this gist). I chose to exclude `rCharts` for two reasons:
  1. demo how we can use htmltools to build html/js in R
  2. help users understand some of the things rCharts does f
trestletech / .gitignore
Last active August 29, 2015 14:01
Slides from RStudio's presentation on Shiny at R/Finance 2014. Hosted version available here:
View .gitignore
ramnathv / Makefile
Last active January 16, 2021 13:47
R Markdown to IPython Notebook
View Makefile example.Rmd
notedown | sed 's/%%r/%%R/' > example.ipynb
withr / server.R
Last active August 26, 2023 02:31
Encrypt password with md5 for Shiny-app.
View server.R
Logged = FALSE;
PASSWORD <- data.frame(Brukernavn = "withr", Passord = "25d55ad283aa400af464c76d713c07ad")
# Define server logic required to summarize and view the selected dataset
shinyServer(function(input, output) {
source("www/Login.R", local = TRUE)
if (USER$Logged == TRUE) {
dsparks / kmeans_palette.R
Last active June 27, 2019 00:10
Image Manipulation, Part 2
View kmeans_palette.R
doInstall <- TRUE # Change to FALSE if you don't want packages installed.
toInstall <- c("jpeg", "reshape2", "ggplot2")
if(doInstall){install.packages(toInstall, repos = "")}
lapply(toInstall, library, character.only = TRUE)
# Image URL:
allImageURLs <- c("",