Skip to content

Instantly share code, notes, and snippets.

Draft: Applied Mixed Integer Linear Programming for Beginners

Format preferences

  • virtual, morning hours Nashville, Tennessee time, as I am based in Berlin, 2 - 3 hours

Language in which the tutorial can be taught

  • English

The title of the tutorial

  • Applied Mixed Integer Linear Programming for Beginners

The broad topic it covers

  • Discrete optimization, operations research
@cderv
cderv / 00-New setup.md
Last active March 26, 2024 10:09
New computer setup
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
@sunsided
sunsided / etc-docker-daemon.json
Created February 29, 2020 13:48
WIFIonICE vs Docker: Fixing DB (Deutsche Bahn) WIFI by moving Docker away from 172.18.x.x in /etc/docker/daemon.json
{
"bip": "172.39.1.5/24",
"fixed-cidr": "172.39.1.0/25",
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
}
}
@brshallo
brshallo / extract_coefs_effects_coding.md
Last active August 28, 2020 13:01
Given lm object, extract the high level variable, the levels, and the reference level, as well as the estimate of the impact for this variable (assuming using effects coding).
library(tidyverse)
library(broom)
library(car)

param <- getOption("contrasts")
go_deviance <- param
# traditional `contr.sum` does not name levels, so use function from `car` package
go_deviance["unordered"] <- "contr.Sum"
@raven4752
raven4752 / keras_limit.py
Last active February 2, 2023 13:42
limit gpu memory usage of keras
#put the these lines before importing any module from keras.
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
config.gpu_options.visible_device_list = "0" #only the gpu 0 is allowed
set_session(tf.Session(config=config))
@amberjrivera
amberjrivera / Pipeline-guide.md
Created January 26, 2018 05:02
Quick tutorial on Sklearn's Pipeline constructor for machine learning

If You've Never Used Sklearn's Pipeline Constructor...You're Doing It Wrong

How To Use sklearn Pipelines, FeatureUnions, and GridSearchCV With Your Own Transformers

By Emily Gill and Amber Rivera

What's a Pipeline and Why Use One?

The Pipeline constructor from sklearn allows you to chain transformers and estimators together into a sequence that functions as one cohesive unit. For example, if your model involves feature selection, standardization, and then regression, those three steps, each as it's own class, could be encapsulated together via Pipeline.

Benefits: readability, reusability and easier experimentation.
@robjhyndman
robjhyndman / tscv-xreg.R
Last active July 14, 2022 10:00
tsCV with xreg
library(forecast)
fc <- function(y, h, xreg, newxreg) {
fit <- auto.arima(y, xreg=xreg)
forecast(fit, xreg=newxreg, h=h)
}
y <- ts(rnorm(100))
x <- matrix(ts(rnorm(100)),ncol=1)
tsCV(y, fc, xreg=x, h=1)
@peterhurford
peterhurford / advanced-r-abridged.md
Last active June 2, 2021 17:26
Advanced R, Abridged

Advanced R, Abridged

"Advanced R" by Hadley Wickham is widely considered the best resource to improve your knowledge at R. However, going through it and answering every exercise takes a long time. This guide is designed to give you the most essential parts of Advanced R so that you can get going right away. It still will take a long time, but not as long.

--

1.) Quickly skim these chapters (without doing the exercises) to make sure you're familiar with the concepts:

D3 Links
--------
https://d3js.org/
https://bost.ocks.org/mike/bar/
https://jsfiddle.net/tLgp7qvv/ -> skalierender Bar Chart (abgewandelt von Teil 2 des Tutorials)
Javascript testen
-----------------
https://jsfiddle.net/
#install.packages('ReporteRs')
library('ReporteRs') # Load ReporteRs Package
pres.builder <- pptx(template = '.../Master.pptx')
pres.filename <- ".../R-Meetup_Output.pptx"
# Show slide names
pres.builder
# Build Title slide
pres.builder <- addSlide( pres.builder, "Title slide" ,bookmark = 1) # Slide name='Title slide', bookmark=1 <- overwrites first slide