…So says the White House Council of Economic Advisors, anyway.
Nonlinear functional forms make Trump look even better in most cases
— CEA (@WhiteHouseCEA) September 10, 2018
I’d wanted to learn how to do K-means image compression in R. So I decided to fact-check CEA’s claim by seeing what President Trump would look like if I compressed his image. Total time from googling R code to posted image: 15 minutes. Props to this guy for the clear code.
On the whole, I would have to say that CEA’s claim checks out…
CEA: "Nonlinear functional forms make Trump look even better in most cases."
.
Politifact evaluation: True. (kmeans k=2, k=3).
.
(Not a knock on the President's appearance. Of course he is more handsome than I am. Just a fun opportunity to learn R-based image compression.) pic.twitter.com/DOEP4b3CLl— Harold Pollack (@haroldpollack) September 11, 2018
Some other cool compressed images below
This is a more interesting k-means image compression…. pic.twitter.com/iZgkuuR8M5
— Harold Pollack (@haroldpollack) September 13, 2018
These too. Yeah I did this on my feed in another computer language a few months ago… pic.twitter.com/DgX5pGuSGr
— Harold Pollack (@haroldpollack) September 13, 2018
Leave a Reply
You must be logged in to post a comment.