Follow along with the presentation:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MAC manipulators | |
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setwd("~/Downloads") | |
obs <- XML2Obs("out.xml", url.map=TRUE) | |
unique(names(obs)) #you might want to re_name or add_key before collapsing | |
tables <- collapse(obs) | |
head(tables[["osm//node//tag"]]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q: what book should i use to learn ML? | |
A: use several, and find the one that speaks to you. | |
the list below assumes you know a bit of math but | |
are not very mathematical, and are interested in learning | |
enough to be practical. that is, it is not at the | |
mathematical level of MIJ's alleged list | |
(cf. https://news.ycombinator.com/item?id=1055389 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageCms | |
im = Image.open(image_path) | |
if im.mode != "RGB": | |
im = im.convert("RGB") | |
srgb_profile = ImageCms.createProfile("sRGB") | |
lab_profile = ImageCms.createProfile("LAB") | |
rgb2lab_transform = ImageCms.buildTransformFromOpenProfiles(srgb_profile, lab_profile, "RGB", "LAB") |