Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Hands-On Artificial Intelligence for Beginners
Hands-On Artificial Intelligence for Beginners

Hands-On Artificial Intelligence for Beginners: An introduction to AI concepts, algorithms, and their implementation

Arrow left icon
Profile Icon Patrick D. Smith Profile Icon Dindi
Arrow right icon
£32.99
eBook Oct 2018 362 pages 1st Edition
eBook
£32.99
Paperback
£41.99
Subscription
Free Trial
Renews at £16.99p/m
Arrow left icon
Profile Icon Patrick D. Smith Profile Icon Dindi
Arrow right icon
£32.99
eBook Oct 2018 362 pages 1st Edition
eBook
£32.99
Paperback
£41.99
Subscription
Free Trial
Renews at £16.99p/m
eBook
£32.99
Paperback
£41.99
Subscription
Free Trial
Renews at £16.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Hands-On Artificial Intelligence for Beginners

Machine Learning Basics

Artificial Intelligence (AI) is rooted in mathematics and statistics. When creating an Artificial Neural Network (ANN), we're conducting mathematical operations on data represented in linear space; it is, by nature, applied mathematics and statistics. Machine learning algorithms are nothing but function approximations; they try and find a mapping between an input and a correct corresponding output. We use algebraic methods to create algorithms that learn these mappings.

Almost all machine learning can be expressed in a fairly straight-forward formula; bringing together a dataset and model, along with a loss function and optimization technique that are applicable to the dataset and model. This section is intended as a review of the basic mathematical tools and techniques that are essential to understanding what's under the hood in AI.

In this chapter...

Technical requirements

In this chapter, we will be working in Python 3 with the scikit-learn scientific computing package. You can install the package, you can run pip install sklearn in your terminal or command line.

Applied math basics

When we talk about mathematics as related to deep learning and AI, we're often talking about linear algebra. Linear algebra is a branch of continuous mathematics that involves the study of vector space and operations performed in vector space. If you remember back to grade-school algebra, algebra in general deals with unknown variables. With linear algebra, we're extending this study into linear systems that have an arbitrary number of dimensions, which is what makes this a form of continuous mathematics.

AI relies on the basic building block of the tensor. Within AI, these mathematical objects store information throughout ANNs that allow them to operate; they are data structures that are utilized throughout AI. As we will see, a tensor has a rank, which essentially tells us about the indices of the data (how many rows and columns the data has).

...

Basic statistics and probability theory

Probability, the mathematical method for modeling uncertain scenarios, underpins the algorithms that make AI intelligent, helping to tell us how our systems should reason. So, what is probability? We'll define it as follows:

Probability is a frequency expressed as a fraction of the sample size, n [1].

Simply said, probability is the mathematical study of uncertainty. In this section, we'll cover the basics of probability space and probability distributions, as well as helpful tools for solving simple problems.

The probability space and general theory

When probability is discussed, it's often referred to in terms of the probability of a certain event happening. Is it going...

Constructing basic machine learning algorithms

As mentioned in the last chapter, machine learning is a term that was developed as a reaction to the first AI winter. Today, we generally consider machine learning to be the overarching subject area for deep learning and ANNs in general.

Most machine learning solutions can be broken down into either a classification problem or a regression problem. A classification problem is when the output variables are categorical, such as fraud or not fraud. A regression problem is when the output is continuous, such as dollars or site visits. Problems with numerical output can be categorical, but are typically transformed to have a categorical output such as first class and second class.

Within machine learning, we have supervised algorithms and unsupervised algorithms. In this section, we will introduce these types of algorithms and explore...

Basic tuning

So you've built a model, now what? Can you call it a day? Chances are, you'll have some optimization to do on your model. A key part of the machine learning process is the optimization of our algorithms and methods. In this section, we'll be covering the basic concepts of optimization, and will be continuing our learning of tuning methods throughout the following chapters.

Sometimes, when our models do not perform well with new data it can be related to them overfitting or underfitting. Let's cover some methods that we can use to prevent this from happening. First off, let's look at the random forest classifier that we trained earlier. In your notebook, call the predict method on it and pass the x_test data in to receive some predictions:

predicted = rf_classifier.predict(x_test)

From this, we can create evaluate the performance of our classifier...

Summary

Machine learning, and by extension, deep learning, relies on the building blocks of linear algebra and statistics at its core. Vectors, matrices, and tensors provide the means by which we represent input data and parameters in machine learning algorithms, and the computations between these are the core operations of these algorithms. Likewise, distributions and probabilities help us model data and events in machine learning.

We also covered two classes of algorithms that will inform how we think about ANNs in further chapters: supervised learning methods and unsupervised learning methods. With supervised learning, we provide the algorithm with a set of features and labels, and it learns how to appropriately map certain feature combinations to labels. In unsupervised learning, the algorithm isn't provided with any labels at all, and it must infer relationships and...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Enter the world of AI with the help of solid concepts and real-world use cases
  • Explore AI components to build real-world automated intelligence
  • Become well versed with machine learning and deep learning concepts

Description

Virtual Assistants, such as Alexa and Siri, process our requests, Google's cars have started to read addresses, and Amazon's prices and Netflix's recommended videos are decided by AI. Artificial Intelligence is one of the most exciting technologies and is becoming increasingly significant in the modern world. Hands-On Artificial Intelligence for Beginners will teach you what Artificial Intelligence is and how to design and build intelligent applications. This book will teach you to harness packages such as TensorFlow in order to create powerful AI systems. You will begin with reviewing the recent changes in AI and learning how artificial neural networks (ANNs) have enabled more intelligent AI. You'll explore feedforward, recurrent, convolutional, and generative neural networks (FFNNs, RNNs, CNNs, and GNNs), as well as reinforcement learning methods. In the concluding chapters, you'll learn how to implement these methods for a variety of tasks, such as generating text for chatbots, and playing board and video games. By the end of this book, you will be able to understand exactly what you need to consider when optimizing ANNs and how to deploy and maintain AI applications.

Who is this book for?

This book is designed for beginners in AI, aspiring AI developers, as well as machine learning enthusiasts with an interest in leveraging various algorithms to build powerful AI applications.

What you will learn

  • Use TensorFlow packages to create AI systems
  • Build feedforward, convolutional, and recurrent neural networks
  • Implement generative models for text generation
  • Build reinforcement learning algorithms to play games
  • Assemble RNNs, CNNs, and decoders to create an intelligent assistant
  • Utilize RNNs to predict stock market behavior
  • Create and scale training pipelines and deployment architectures for AI systems

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 31, 2018
Length: 362 pages
Edition : 1st
Language : English
ISBN-13 : 9781788992268
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Oct 31, 2018
Length: 362 pages
Edition : 1st
Language : English
ISBN-13 : 9781788992268
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
£16.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
£169.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts
£234.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total £ 99.97
Artificial Intelligence and Machine Learning Fundamentals
£24.99
Hands-On Artificial Intelligence for Beginners
£41.99
Artificial Intelligence By Example
£32.99
Total £ 99.97 Stars icon

Table of Contents

14 Chapters
The History of AI Chevron down icon Chevron up icon
Machine Learning Basics Chevron down icon Chevron up icon
Platforms and Other Essentials Chevron down icon Chevron up icon
Your First Artificial Neural Networks Chevron down icon Chevron up icon
Convolutional Neural Networks Chevron down icon Chevron up icon
Recurrent Neural Networks Chevron down icon Chevron up icon
Generative Models Chevron down icon Chevron up icon
Reinforcement Learning Chevron down icon Chevron up icon
Deep Learning for Intelligent Agents Chevron down icon Chevron up icon
Deep Learning for Game Playing Chevron down icon Chevron up icon
Deep Learning for Finance Chevron down icon Chevron up icon
Deep Learning for Robotics Chevron down icon Chevron up icon
Deploying and Maintaining AI Applications Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.