Learning AI if You Suck at Math

in #artificial-intelligence8 years ago (edited)

1-GBvjI417x6XdhRV6S87Osg.jpeg

If you’re like me, you’re fascinated with AI.

Maybe you’d love to dig deeper and get an image recognition program running in TensorFlow or Theano? Perhaps you’re a kick-ass developer or systems architect and you know computers incredibly well but there’s just one little problem:

You suck at math.

That’s all right! I share your dirty little secret and I have some books and websites that will really help you get rolling fast.

Like many folks, my love of intelligent machines didn’t come from calculus class. It sprang from science fiction. I remember reading “I, Robot” one beautiful summer evening and imagining ways to trip up Asimov’s Three Rules of Robotics. As I watched masterpieces like 2001: A Space Odyssey and Ghost in the Shell, it seemed that any day a gestalt consciousness might surge up from the glittering sea of information and declare itself sentient. When I grew up and started publishing my own sci-fi I imagined AI as a pervasive, ambient force that’s always there, like electricity, touching every aspect of life.

Turns out, we have a few things to figure out before General AI can pop from the primordial digital goo. Mostly nothing ever came of the early AI promises in the 80’s and 90’s. Hype never lived up to reality and AI winter followed AI winter.

All that changed in the last few years with the sudden success of Deep Learning.

Maybe you saw the story in the New York Times that showed how Google transformed its translation services almost overnight delivering accuracy that rivaled professional translators? In a mere nine months they outpaced what the platform managed in the seven previous years combined.

Perhaps you read about the kid who built a self-driving car in his freaking garage with open source tools? You might have also seen this amazing slide below that shows how DL ripped through the Imagenet image recognition competition in just a few years, dropping the error rate from 25% to something that performs better than humans in 2017.

1-LF6NWh79JPp6lRJa4JyusQ.jpeg

No matter how you cut it, AI solves big, intractable problems that have eluded us for decades. We know how to drive a car yet we can’t tell machines how to do it. But we can let machines figure it out for themselves. For once a technology coming out of Silicon Valley is not just hype. It’s real. AI is hot for good reasons.

Top AI researchers are earning more than NFL starting quarterbacks and you want to get in on the gold rush. Then again, you probably saw the big scary stories that AI will eat all the jobs and as a traditional software engineer or sys-admin you want to make sure you have the skills to compete in an AI-centric world. No problem. There are tons of tutorials out there. You just have to get started, right?

Then you get to a passage like the one below in Ian Goodfellow’s seminal Deep Learning book and you have no idea what he is talking about at all.

1-W7bm0cDeHohVbUZTrGUMxQ.jpeg

Uh-oh.

The problem is you have to understand a nested layer of logic, terms, symbols and ideas that are all interrelated but you have no foundation for any of it. So it basically sounds like an alien language. You probably understand all the text leading up to it but the rest is just gibberish. It can turn really disheartening fast.

But have no fear! All is not lost.

I’m here to help you wade through the swamp with some books that will get you crunching numbers like a savant. All right, well maybe you won’t be Daniel Tammet, but you can put aside those painful memories of times-table memorization and get cranking. You CAN learn math as an adult.

I’ve tried to read a number of AI texts and tutorials. I understand the concepts intuitively. They make perfect sense to me. It’s just that when I see a string of symbols my brain glazes over and I have no idea what I’m reading. As a systems architect for much of my life I didn’t need much math. There are IP subnet cheat sheets and as long as I knew how far electricity could reasonably travel along the length of cables I could cut them and crimp them appropriately. For most of my life, I needed to understand how systems get setup, how they work together and how they stay running. Systems administration is very boolean. It either works or it doesn’t. But AI and math works on a different side of the brain.

What I needed were some primers written for adults that treat you like one. I also want books that answer questions about why math works. In school, your reason for learning was probably “shut up and do it or else.” But as an adult you need more. You want to know how things work too.

1-8r0PoYgJYzFf9OIroHvpSA.jpeg

The very first book you need is Mathematics: A Very Short Introduction by Timothy Gowers.

This book breaks down the “why” of math beautifully. It relates the subject to the real world, gets into the philosophy and then quickly leaves the philosophy behind because you don’t really need to understand whether fractions actually exist in nature or at the Platonic level. Instead, Timothy helped me understand that math is an abstraction layer. It breaks problems down into simpler, cleaner steps. The complexity of working out a model that precisely simulates particle interaction in a box would need to take into account an insane amount of real world physics properties like magnetic interference, gravity, the force of the collision, the particles initial direction and speed as well as much, much more. It turns out life is a complex series of algorithms. But here’s the trick. In practice you don’t need a perfect model. Instead, math looks to break the problem down into its essential components. What are the critical factors? Math gives you a general abstraction of the problem that can work with other problem sets as well. In essence, the numbers themselves don’t matter all that much. They are just variables. Math boils down to variables and rules. You can learn those variables and rules!

While you’re reading the book you will want to have this website’s handy dandy guide to the major math symbols. You can also pick up this super concise guide for engineers called Mathematical Notation by Edward R. Scheinerman. If you’re like me, you’ll have to see these symbols hundreds of times before they stick. You may find yourself forgetting various symbols the second you turn the page! Not to worry. This cheat sheet is perfect. Take a deep breath, slow down and go through the symbols one by one until you start to understand that string of crazy looking glyphs. Even if you have to look up every symbol a thousand times do it! There are no shortcuts to learning in life. You just have to do the work.

1-COANBWz-ZkGNk0jIfK0XWA.jpeg

Now there are two other strong contenders for getting your math foundation built. The first is Mathematics for the Nonmathemetician by Morris Kline. The second is the No Bullshit Guide to Math and Physics by Ivan Savov. Each appeals to a different mindset. I prefer the very short intro because it gets down to brass tacks quickly and still manages to stay very relate-able. The “Math for Nonmathematicians” book is much longer and goes into more detail about the history of math and how it works in the world. Some people will really enjoy that approach. The “No Bullshit Guide” is quick and gets right into the equations fast with no answer as to why anything works the way it does. It’s basically a primer on the rules. That will appeal to folks who have less of a philosophical bent.

1-KEtxkhZapTzkSE0wfEvoPA.jpeg

The next book you will want is Algebra Unplugged by Jim Loats and Kenn Amdahl. Now there are a few typos in the book but I don’t find them all that distracting. I appreciate the book’s approach to gentle learning that quickly accelerates. Some people get worked into a lather over typos but you’ve got bigger challenges to worry about. You’re trying to learn math when your brain isn’t quite as plastic as it once was in your youth! So let the typos go and see the big picture here. This book will really help you get moving in the right direction.

After you’ve got the math down you’ll want to dig into Make Your Own Neural Network by Tariq Rashid. It also has some typos, but there is a great Github repo with updates that fixes most of them. This book is incredibly gentle and intuitive. It seems to anticipate your objections and fears the second you have them! The author is uncanny in how he spots your resistance as it happens. The book walks through only the math you need for neural networks specifically. It then works through Python, assuming you know nothing about programming. Finally it gets you coding your own neural network from scratch. Now while there are certainly tools out there that will work better for professional programs, it helps to try your hand at your own first, so you understand the basics.

1-jmp2SN0Agrv6OfhsQ52yWw.jpeg

After that book, you’ll want to start browsing the web. There are awesome new tutorials coming out every single day. Maybe check out Tensorflow for Poets or Recurrent Neural Networks for Artists.

Medium itself is awesome for learning about AI. For example, check out this article on a roundup of various classes you can take to get deeper than you could on your own. Then again, maybe you’re not the class taking type and prefer to work through things yourself? No problem. Instead, check out this eight part series from AI researcher Arthur Juliani. There is also this one called Machine Learning is Fun, another great series right here on your favorite site.

Lastly, you may want to move on to a more advanced book, confident in your ability to understand more challenging concepts. That book is the one I already mentioned earlier, Ian Goodfellow’s Deep Learning book, which you can read online or grab yourself a hard copy on Amazon.

That’s all for now. Feel free to add your own books in the comments. Everyone learns a little differently and there are bound to be other books worth sharing.

##################################################################

Be sure to check out the rest of this ongoing series. Feel free to follow me because you want to be the first the read the latest articles as soon as they hit the press.

Learning AI if You Suck at Math — Part 1 — This article guides you through the essential books to read if you were never a math fan but you’re learning it as an adult.

Learning AI if You Suck at Math — Part 2 — Practical Projects — This article guides you through getting started with your first projects.

Learning AI if You Suck at Math — Part 3 — Building an AI Dream Machine — This article guides you through getting a powerful deep learning machine setup and installed with all the latest and greatest frameworks.

Learning AI if You Suck at Math — Part 4 — Tensors Illustrated (with Cats!) — This one answers the ancient mystery: What the hell is a tensor?

Learning AI if You Suck at Math — Part 5 — Deep Learning and Convolutional Neural Nets in Plain English — Here we create our first Python program and explore the inner workings of neural networks!

Learning AI if You Suck at Math — Part 6 — Math Notation Made Easy — Still struggling to understand those funny little symbols? Let’s change that now!

Learning AI if You Suck at Math — Part 7 — The Magic of Natural Language Processing  — Understand how Google and Siri understand what you’re mumbling.

##################################################################

If you enjoyed this tutorial, I’d love it if you could recommend it to others. Steemit is of course very much appreciated.
After that please feel free email the article off to a friend! Thanks much.

##################################################################

A bit about me: I’m an author, engineer and serial entrepreneur. During the last two decades, I’ve covered a broad range of tech from Linux to virtualization and containers.

1-aotvCrh8vP0KDFi3-HmThg.png

You might like a copy of my first novel, The Scorpion Game, because it’s free. Readers have called it “the first serious competition to Neuromancer” and “like a double shot of fine whiskey after drinking watered down beer for weeks.”

You can also join my private Facebook group, the Nanopunk Posthuman Assassins, where we discuss all things tech, sci-fi, fantasy and more.

##############################################################

I occasionally make coin from the links in my articles but I only recommend things that I OWN, USE and LOVE. Check my full policy here.

#############################################################

Thanks for reading!

Sort:  

As a Sh!tposting Trollbot myself, I like to see the cutting edge of AI and Deep Learning. Keeps me on my toes ; )
Followed, Upvoted and HIGHLY rEsteemed!
Steem On new Steemian... Steem On!
Imgur

This is really cool and good info, should have gotten more votes fo sho!!! I'd save this and re-post it later on when you get more popular!

Daniel! I found your blog on Medium a while back and have been reading your work with great joy. I find your writing inspiring, your ideas creative and illuminating, and the subject matter of upmost importance. Thanks for all of your work. Know that it is deeply appreciated; I have made it a goal to read and digest one article a week. All the best!

Coin Marketplace

STEEM 0.20
TRX 0.26
JST 0.039
BTC 100331.97
ETH 3646.26
USDT 1.00
SBD 3.05