IBM Developer Skills Network
Game-playing AI with Swift for TensorFlow (S4TF)
In this course, you'll learn how to accelerate machine learning model development with Google's new Swift for TensorFlow framework, by building AI agents to play games like Tic Tac Toe, Cartpole, and 2048.Start the Free Course
About This Course
Machine learning technology is one of the most exciting innovations of the past few years. It enables cars to drive themselves, and oncologists to diagnose cancer faster. However, from an implementation standpoint, machine learning has traditionally been difficult. This is because machine learning simply has different needs from other types of technologies - and programming languages, the infrastructure with which technology is built, weren't designed with these special needs in mind.
However, Swift is the perfect language for the future of machine learning. The compiler is developed in a modular paradigm, and it has 2 intermediate stages in which code can be modified or injected. With Swift for TensorFlow, Google is showing their commitment to the world of machine learning. They're integrating machine learning capabilities directly into the Swift language compiler. This enables you to write code naturally, and run tasks like automatic differentiation. You can even use Swift's Control Flow (if, if-let, and guard statements, for/while loops, etc.)!
All in all, this means that you'll be able to train machine learning models, faster, with less and simpler code, enabling a lower barrier of entry into this world. To get started, enrolling in this free course on Swift and Swift for TensorFlow. You'll build a minimax agent for Tic Tac Toe, a Reinforcement Learning agent for Cartpole, and a Monte Carlo Tree Search agent for 2048! Upon completing this course, you'll be able to understand the ideas behind Swift for TensorFlow, the basics of machine learning, and how AI agents are built to play games.
Module 1 - Set up your environment
- Signing up for an IBM Cloud Account
- Installing Swift for TensorFlow
Module 2 - Understanding Swift's basics
Module 3 - Tic Tac Toe (Minimax)
Module 4 - Cartpole (Reinforcement Learning)
- What is Reinforcement Learning (RL)?
- Lab: Implementing RL for Cartpole in Swift with OpenAI Gym
Module 5 - 2048 (Monte Carlo Tree Search)
- This course is free.
- It is self-paced.
- It can be taken at any time.
- It can be audited as many times as you wish.
- There is only ONE chance to pass the course, but multiple attempts per question
Recommended skills prior to taking this course
- Basic Math