Hexapawn is a mini chess variant, popularized by Martin Gardner.
White moves first. A piece can either move forward if the space in front of it is empty, or capture an opponent’s piece diagonally.
A player wins when:
One of their pawns reaches the other side
They capture all of their opponent's pieces
It is their opponent's turn and there is no legal move
Each position has a value, and each time a game ends, every position from that game gets +1 for player 1 win, or -1 for player 2 win
For Later: Watch Matt Parker
Summary: Hexapawn Machine Learning
Analyzing games involves combinatorics, probability, modeling. It can involve experiments, data, statistics, graphing, etc.
Understanding the mechanisms of machine learning remove some of the mysticism. AI isn't magic.
Adversarial attacks on games develop conceptual understanding of bias, and demonstrate potential weaknesses of deployed ML projects.
Red Green Blue (RGB)
Closeup of LCD display
RGB
An image on a screen is a composite of three color channels
A digital image is a grid of pixel values, typically with values from 0
(none of that color) to 255 (full color).
0
50
100
200
0
50
100
200
0
50
100
200
0
50
100
255
+
0
0
0
0
50
50
50
50
100
100
100
100
200
200
200
255
+
0
0
100
200
0
50
100
0
100
100
100
200
200
0
200
255
=
0,0,0
50,0,0
100,0,100
200,0,200
0,50,0
50,50,50
100,50,100
200,50,0
0,100,100
50,100,100
100,100,100
200,100,200
0,200,200
50,200,0
100,200,200
255,255,255
Red
Green
Blue
Composite
255
255
255
"Filters" are functions that take an image as input, operate on the pixel values, and output the new
image.
Warmer
⟶
Cooler
⟶
Blur
⟶
\(+\Delta RGB\) ⟶
\(\Delta\)R: 0
\(\Delta\)G: 0
\(\Delta\)B: 0
Original RGB Histogram
Transformed RGB Histogram
Try isolating different objects with the filter
RGB Filter:
025502550255
025502550255
A Classification Problem
We are given an image and want to classify it as "Apple", "Orange", "Banana", or "Blueberry"
⟶
Classifier
⟶
"Apple"
Feature Engineering a Fruit Classifier
Gather all of the "Apple" images. For each image, add up the total R values, G values, and B values.
Feature Engineering a Fruit Classifier
Gather all of the "Apple" images. For each image, add up the total R values, G values, and B values.
Feature Engineering a Fruit Classifier
Feature Engineering a Fruit Classifier
RGB sum = (2.15, 2.21, 1.8) Million ⟶ ?
Feature Engineering a Fruit Classifier
Given an input image, our Fruit Classifier Algorithm is:
O'Neil, C., Schutt, R. (2013). Doing Data Science: Straight Talk from the Frontline. United States: O'Reilly Media.
Samuel, A.L. (1959). Some Studies in Machine Learning Using the Game of Checkers. IBM Journal of Research and Development, 44, 206-226.
Gardner, M. (1962, March). How to build a game-learning machine and then teach it to play and to win. Scientific American, 206(3), 138-153.
Williams, J. (2024). Building a Digit Classifier with MNIST. Mathematics Teacher: Learning and Teaching PK-12, 117(2), 129-137.
Resources: https://jedediyah.github.io/data/mnist/
Hart, Eric & Martin, W Gary. (2018). Discrete Mathematics Is Essential Mathematics in a 21st Century School Curriculum. 10.1007/978-3-319-70308-4_1.
Hart, E.W., Martin, W.G. (2018). Discrete Mathematics Is Essential Mathematics in a 21st Century School Curriculum. In: Hart, E., Sandefur, J. (eds) Teaching and Learning Discrete Mathematics Worldwide: Curriculum and Research. ICME-13 Monographs. Springer, Cham. https://doi.org/10.1007/978-3-319-70308-4_1
DeBellis, V.A., Rosenstein, J.G. Discrete mathematics in primary and secondary schools in the United States. Zentralblatt für Didaktik der Mathematik 36, 46–55 (2004). https://doi.org/10.1007/
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
McCulloch, W. S., & Pitts, W. (1943). A logical calculus of the ideas immanent in nervous activity. The Bulletin of Mathematical Biophysics, 5(4), 115–133.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
Turing, A. M. (1950). Computing machinery and intelligence. Mind, 59, 433–460.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
Workshop topics
Automatic Computers
How Can a Computer be Programmed to Use a Language
Neuron Nets
Theory of the Size of a Calculation
Self-Improvement
Abstractions
Randomness and Creativity
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
Samuel, A. L. (1959). Some Studies in Machine Learning Using the Game of Checkers. IBM Journal of Research and Development, 3, 210--229.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
The Jetsons (1962). "Rosie the Robot".
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
1964 - 1967. ELIZA. Joseph Weizenbaum.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
1975. Pet Rock.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
1983. Wargames.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
1984. The Terminator.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
1996. Kasparov defeats IBM's Deep Blue.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
1997. Deep Blue defeats Gary Kasporav.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
2007. NVidia CUDA - A software interface for GPUs, making it much easier to write code that is highly parallelized.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
The first time I was told, earnestly, by someone who "should know"
that teachers won't exist in 5 years because of AI.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
2011. IMB's Watson beats Ken Jennings and Brad Rutter in Jeopardy!
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
2012. AlexNet.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
2014. PhotoMath.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
2013-2015. DARPA Robotics Challenge.
A brief and selective history of AI
1940
1945
1950
1955
1960
1965
1970
1975
1980
1985
1990
1995
2000
2005
2010
2015
2020
2025
^
2016. AlphaGO beats Lee Sudol 4-1 in five game match.