Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
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
Question: What kind of IBM Cloud account doesn’t require payment information and doesn’t expire?
Note: Make sure you select all of the correct options—there may be more than one!
Question: Which of the following platforms does Swift NOT run natively on?
Module 2 – Understanding Swift’s basics
Question: Which of the following companies did Chris Lattner work at after Apple?
Note: Make sure you select all of the correct options—there may be more than one!
Question: For how many years was Swift in development before it was released to the public?
Answer: 4
Question: What kind of programming language is Swift?
Question: Which HTTP server for Swift will this course use?
Module 3 – Tic Tac Toe (Minimax)
Question: Why does our implementation of Minimax keep track of the depth of the tree?
Question: How is the tic-tac-toe board stored?
Question: If minimax started from a blank board and had to calculate the best possible move, how many board states would it evaluate? For the sake of mathematical simplicity, assume the board must be filled completely to be considered “over” – players cannot win.
Question: The “minimax” function returns the best move to take for a board state.
Module 4 – Cartpole (Reinforcement Learning)
Question: The cartpole game is what kind of problem?
Answer: Inverted Pendulum
Question: The @differentiable function decorator is an example of an implementation of what technology/technique?
Answer:
Question: Why do we only train the network with the top 30% of episodes?
Question: OpenAI Gym…
Note: Make sure you select all of the correct options—there may be more than one!
Module 5 – 2048 (Monte Carlo Tree Search)
Question: The implementation of the 2048 game logic is made fast by:
Note: Make sure you select all of the correct options—there may be more than one!
Question: Which framework did we use to enable Swift to host HTTP servers?
Answer: Kitura
Question: Monte Carlo Tree Search is…
Note: Make sure you select all of the correct options—there may be more than one!
Question: Which swift file defines dependencies and other package details?
Answer: Package.swift
Final Exam
Question: Which tier(s) of IBM Cloud require payment information on file?
Note: Make sure you select all of the correct options—there may be more than one!
Question: Why would you want to use a single language, Swift, over many languages, each specialized for a certain task?
Note: Make sure you select all of the correct options—there may be more than one!
Question: Does Minimax plays perfectly all the time? If so, why?
Question: Classes are passed by reference, and structs are always, indiscriminately passed by value.
Question: A computed property is…
Question: Why is Minimax penalized for looking at moves deeper into the game tree?
Note: Make sure you select all of the correct options—there may be more than one!
Question: Why is Reinforcement Learning important?
Note: Make sure you select all of the correct options—there may be more than one!
Question: Swift for TensorFlow is interoperable with Python, because Python’s written in C
Question: What are some reasons Swift for TensorFlow is special?
Note: Make sure you select all of the correct options—there may be more than one!
Question: For what reasons did we implement monte carlo tree search in a time-bounded manner?
Note: Make sure you select all of the correct options—there may be more than one!
We hope you know the correct answers to Game-playing AI with Swift for TensorFlow (S4TF) If Queslers helped you to find out the correct answers then make sure to bookmark our site for more Course Quiz Answers.
If the options are not the same then make sure to let us know by leaving it in the comments below.
In our experience, we suggest you enroll in this and gain some new skills from Professionals completely free and we assure you will be worth it.
This course is available on Cognitive Class for free, if you are stuck anywhere between quiz or graded assessment quiz, just visit Queslers to get all Quiz Answers and Coding Solutions.
More Courses Quiz Answers >>
Building Cloud Native and Multicloud Applications Quiz Answers
Accelerating Deep Learning with GPUs Quiz Answers
Blockchain Essentials Cognitive Class Quiz Answers
Deep Learning Fundamentals Cognitive Class Quiz Answers
Hadoop 101 Cognitive Class Answers