# https://stackoverflow.com/questions/74491138/ggplot-custom-fonts-not-working-in-quarto# Chunk optionsknitr::opts_chunk$set( fig.width =7, fig.asp =0.618, # Golden Ratio# out.width = "80%", fig.align ="center")### Ggplot Theme### https://rpubs.com/mclaire19/ggplot2-custom-themestheme_custom<-function(){font<-"Roboto Condensed"# assign font family up fronttheme_classic(base_size =14)%+replace%# replace elements we want to changetheme( panel.grid.minor =element_blank(), # strip minor gridlines text =element_text(family =font),# text elements plot.title =element_text(# title family =font, # set font family# size = 20, #set font size face ="bold", # bold typeface hjust =0, # left align# vjust = 2 #raise slightly margin =margin(0, 0, 10, 0)), plot.subtitle =element_text(# subtitle family =font, # font family# size = 14, #font size hjust =0, margin =margin(2, 0, 5, 0)), plot.caption =element_text(# caption family =font, # font family size =8, # font size hjust =1), # right align axis.title =element_text(# axis titles family =font, # font family size =10# font size), axis.text =element_text(# axis text family =font, # axis family size =8)# font size)}# Set graph themetheme_set(new =theme_custom())#
Introduction
One of our aims with Creative Coding is to of course make things interactive. Here we will apply the ml5.js library in p5.js to use an ML/DL algorithm called Classification to detect human poses in front of the camera. The code can then create unique experiences based on pose-detection with ML, and the subsequent code that responds to the user.
So, we can perform Classification based on Machine Learning (ML) structured and algorithms such as:
Random Forests. Also see Google Decision Forests. We will try to get an intuition into bootstrapping of variables in data, creating decision trees, and making random selections of variables from a dataset to create random forests.
And there are Deep Learning (DL) structured and algorithms that allow us to do the same things, perhaps in a more “black-box” manner. We will peep into:
Here, we will also try to build an intuitive sense of some of the technical terminology involved: convolution, regression, activation, weighting…and such terms that generally elude peasants.
Wait, But Why?
Understanding the underlying math inside of Neural Nets can help us appreciate better how to apply them design with them, and even keep them as simple as needed.