Fundamentals of Machine Intelligence
Dr Robert Batzinger
Instructor Emeritus
Payap University
Chiang Mai, Thailand
17-Aug-2022
Basic programming
Regression
Genetic algorithms
Markov states
Neural nets with back propagation
Self-organizing maps
Wizard vs Ogre
x = 0
while (x < 5) {
try(x)
x += 1
}
x = 0
unless (x > 5) {
try(x) "
x += 1
}
if(x == 5) {
print "smiling"
} else {
print "frown"
}
unless (x == 5) {
print "smiling"
} else {
print "smiling"
}
The programmer must …
Examples
3 Sprite objects on a backdrop
Programming
AI
Statistical Machine Learning
Year | Average miles per gallon |
---|---|
1940 | 14.8 |
1950 | 13.9 |
1960 | 13.4 |
1970 | 13.5 |
1980 | 15.5 |
1986 | 18.3 |
Coefficients | Estimate | Std. Error | t value | Prob |
---|---|---|---|---|
(Intercept) | 15.103654 | 0.536028 | 28.177 | 9.81e-05 |
x | -0.224609 | 0.055097 | -4.077 | 0.0266 |
x2 | 0.006171 | 0.001139 | 5.416 | 0.0123 |
\[ mpg = 15.103654 - 0.224609 t + 0.006171 t^2\]
Process based on evolutionary biology
Measure the probability of transitions over a year
From | To Urban | To Suburban |
---|---|---|
Urban | 0.95 | 0.05 |
Suburban | 0.03 | 0.97 |
\[\Updownarrow\]
City dwellers
5% move
95% stay
Rural / Suburban dwellers
3% move
97% stay
\[\begin{matrix} & & Population & Transition & & Year end\\ Year & & Urban : Rural & matrix & & Population \\ 1: & & \left[\begin{matrix}130000 & 50000\\\end{matrix}\right]& \left[\begin{matrix} 0.95 & 0.05\\ 0.07 & 0.93\\ \end{matrix}\right] & \longrightarrow & \left[\begin{matrix}127000 & 53000\\\end{matrix}\right]\\ 2: & & \left[\begin{matrix}127000& 53000\\\end{matrix}\right]& \left[\begin{matrix} 0.95 & 0.05\\ 0.07 & 0.93\\ \end{matrix}\right] & \longrightarrow & \left[\begin{matrix}124360 & 55640\\\end{matrix}\right]\\ 3: & & \left[\begin{matrix}124360& 55640\\\end{matrix}\right]& \left[\begin{matrix} 0.95 & 0.05\\ 0.07 & 0.93\\ \end{matrix}\right] & \longrightarrow & \left[\begin{matrix}122037 & 57963\\\end{matrix}\right]\\ 4: & &\left[\begin{matrix} 122037 & 57963\\\end{matrix}\right]& \left[\begin{matrix} 0.95 & 0.05\\ 0.07 & 0.93\\ \end{matrix}\right] & \longrightarrow & \left[\begin{matrix}119992& 60008\\\end{matrix}\right]\\ & & & \dots &\\ 20:& &\left[\begin{matrix}105000& 75000\\\end{matrix}\right]& \left[\begin{matrix} 0.95 & 0.05\\ 0.07 & 0.93\\ \end{matrix}\right] & \longrightarrow & \left[\begin{matrix}105000& 75000\\\end{matrix}\right]\\ \end{matrix}\]
\(\left[\begin{matrix}\circ\bullet\bullet\bullet\circ &\circ\circ\bullet\circ\circ & \bullet\bullet\bullet\bullet\circ& \bullet\bullet\bullet\bullet\circ &\circ\circ\bullet\circ\bullet &\bullet\bullet\bullet\bullet\bullet\\ \bullet\circ\circ\circ\bullet &\circ\bullet\bullet\circ\circ & \circ\circ\circ\circ\bullet & \circ\circ\circ\circ\bullet &\circ\bullet\circ\circ\bullet &\bullet\circ\circ\circ\circ \\ \bullet\circ\circ\circ\bullet &\circ\circ\bullet\circ\circ &\circ\bullet\bullet\bullet\circ & \circ\bullet\bullet\bullet\circ &\bullet\bullet\bullet\bullet\bullet &\bullet\bullet\bullet\bullet\circ\\ \bullet\circ\circ\circ\bullet &\circ\circ\bullet\circ\circ & \bullet\circ\circ\circ\circ & \circ\circ\circ\circ\bullet &\circ\circ\circ\circ\bullet &\circ\circ\circ\circ\bullet\\ \circ\bullet\bullet\bullet\circ &\circ\bullet\bullet\bullet\circ&\bullet\bullet\bullet\bullet\bullet& \bullet\bullet\bullet\bullet\circ &\circ\circ\circ\circ\bullet &\bullet\bullet\bullet\bullet\circ\\ & & & & &\\ \circ\circ\circ\bullet\circ &\bullet\bullet\bullet\bullet\bullet & \circ\bullet\bullet\bullet\circ& \circ\bullet\bullet\bullet\circ &\circ\circ\circ\circ\circ& \circ\circ\circ\circ\circ\\ \circ\circ\bullet\circ\circ & \circ\circ\circ\circ\bullet &\bullet\circ\circ\circ\bullet & \bullet\circ\circ\circ\bullet&\circ\circ\circ\circ\circ & \circ\circ\circ\circ\circ \\ \circ\bullet\bullet\bullet\circ & \circ\circ\circ\bullet\circ & \circ\bullet\bullet\bullet\bullet & \circ\bullet\bullet\bullet\circ &\bullet\bullet\bullet\bullet\bullet& \circ\circ\circ\circ\circ\\ \bullet\circ\circ\circ\bullet & \circ\circ\bullet\circ\circ & \circ\circ\circ\circ\bullet & \bullet\circ\circ\circ\bullet&\circ\circ\circ\circ\circ & \circ\bullet\bullet\circ\circ\\ \circ\bullet\bullet\bullet\circ & \circ\circ\bullet\circ\circ & \circ\circ\circ\circ\bullet & \circ\bullet\bullet\bullet\circ &\circ\circ\circ\circ\circ & \circ\bullet\bullet\circ\circ\\ \end{matrix}\right]\Longrightarrow\left[\begin{matrix}0\\ 1\\ 2\\ 3\\ 4\\ 5\\ 6\\ 7\\ 8\\ 9\\ -\\ .\\ \end{matrix}\right]\)
Eye halve a spelling checker It came with my pea sea. It plainly marks four my revue miss steaks eye kin knot sea. Eye strike a quay and type a word and weight for it to say Weather eye yam wrong oar write. It shows me strait a weigh as soon as a mist ache is maid. It nose bee fore two long and eye can put the error rite. Its rare lea ever wrong. Eye have run this poem threw it, I am shore your pleased to no. Its letter perfect awl the way. My checker told me sew.
Eye halve a spelling checker It came with my pea sea. It marks four my revue miss steaks eye kin knot sea. Eye strike a quay and type a word and weight for it to say Weather eye yam wrong oar write. It shows me straight a weight as soon as a mist ache is made. It nose bee fore two long and eye can put the error rite. It’s rare lea ever wrong. Eye have run this poem threw it, I shore your pleased to no. Its letter is perfect awl the way. My checker told me to sew.
Eyes halve a spelling checker It came with my pea sea. It plainly marks four my revue misses steaks eye kin knot sea. Eye strike a quay and type a word and weight for it to say Weather eye yam wrong or write. It shows me straight a weigh as soon as a mist ache is a maid. It noses bee fore two long and eye can put the error rite. It’s rare lea ever wrong. Eye have run this poem threw it, I shore your pleased to no. Its letter is perfect all the way. My checker told me to sew.
I have a spelling checker It came with my PC. It plainly marks for my review mistakes I cannot see. I strike a key and type a word and wait for it to say whether I am wrong or right. It shows me straight away as soon as a mistake is made. It knows before too long and I can put the error right. It’s rarely ever wrong. I have run this poem threw it, I am sure you’re pleased to know it’s letter perfect all the way. My checker told me so.
Method | Changes | Corrections |
---|---|---|
Grammerly free edition | 10 | 8 |
MS WORD 360 | 13 | 10 |
Manual Copy editing | 38 | 38 |
Dog-muffin challenge
Current uses of facial recognition
PYU GE143 2022/1: Science and IT for the Quality of Life [3]