Professional Documents
Culture Documents
Introduction To Artificial Intelligence Week 9
Introduction To Artificial Intelligence Week 9
OBJECTIVES:
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
The current era is called the Information age not simply because we have
become so data rich but also because society has reached a certain maturity
in analyzing and extracting information from it. Companies such as
Alphabet (Google), Amazon, Apple, Facebook, and Microsoft, which have
built their businesses on data, are viewed as the top five most valuable
companies in the world.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
You can categorize all these transformations in four large and general families
that provide an idea of what happens during data analysis:
» Cleansing: Fixes imperfect data. Depending on the means of acquiring the data, you
may find different problems from missing information, extremes in range, or simply
wrong values.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
» Data describes the world better by presenting a wide variety of facts, and
in more detail by providing nuances for each fact. It has become so
abundant that it covers every aspect of reality.
» Data shows how facts associate with events. You can derive general rules
and learn how the world will change or transform, given certain premises.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Many people are used to the idea that applications start with a function,
accept data as input, and then provide a result. For example, a programmer
might create a function called Add() that accepts two values as input, such
as 1 and 2. The result of Add() is 3. The output of this process is a value. In
the past, writing a program meant understanding the function used to
manipulate data to create a given result with certain inputs.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Here are just a few of the ways in which you might see AI used:
» Fraud detection: You get a call from your credit card company asking
whether you made a particular purchase.
» Automation: Any form of automation can benefit from the addition of AI to handle
unexpected changes or events.
» Customer service: The customer service line you call today may not even have a
human behind it.
» Safety systems: Many of the safety systems found in machines of various sorts today
rely on AI to take over the vehicle in a time of crisis
Here are a few uses for machine learning that you might not associate
with an AI:
» Animal protection: The ocean might seem large enough to allow animals
and ships to cohabitate without problem.
» Predicting wait times: Most people don’t like waiting when they have no
idea how long the wait will be.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
A true AI will eventually occur when computers can finally emulate the
clever combination used by nature:
» Overfitting: Machine learning algorithms can seem to learn what you care about, but
they actually don’t.
» Supervised learning
» Unsupervised learning
» Reinforcement learning
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Supervised learning
Unsupervised learning
Reinforcement learning
Just as human beings have different ways to learn from the world,
so the scientists who approached the problem of AI learning took
different routes. Each one believed in a particular recipe to mimic
intelligence. Up to now, no single model has proven superior to
any other. The no free lunch theorem of having to pay for each
benefit is in full effect.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Symbolic reasoning
One of the earliest tribes, the symbolists, believed that knowledge could be
obtained by operating on symbols (signs that stand for a certain meaning or
event) and deriving rules from them. By putting together complex systems
of rules, you could attain a logic deduction of the result you wanted to know,
thus the symbolists shaped their algorithms to produce rules from data. In
symbolic reasoning, deduction expands the realm of human knowledge,
while induction raises the level of human knowledge.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
The connectionists are perhaps the most famous of the five tribes. This
tribe strives to reproduce the brain’s functions by using silicon instead
of neurons. Essentially, each of the neurons (created as an algorithm
that models the real- world counterpart) solves a small piece of the
problem, and using many neurons in parallel solves the problem as a
whole.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Bayesian inference
Later sections in this chapter explore the nuts and bolts of the core
algorithms chosen by the Bayesians, symbolists, and connectionists. These
tribes represent the present and future frontier of learning from data
because any progress toward a human-like AI derives from them, at least
until a new breakthrough with new and more incredible and powerful
learning algorithms occurs.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Some websites would have you believe that statistics and machine
learning are two completely different technologies. Statistics
often use probabilities — which are a way to express uncertainty
regarding world events — and so do machine learning and AI (to
a larger extent than pure statistics).
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Probability makes sense in terms of time and space, but some other
conditions also influence the probability you measure. The context is
important. When you estimate the probability of an event, you may
(sometimes wrongly) tend to believe that you can apply the probability that
you calculated to each possible situation. The term to express this belief is a
priori probability, meaning the general probability of an event.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
If you have a group of measures and want to describe them using a single
number, you use an arithmetic mean (summing all the measures and
dividing by the number measures). In a similar fashion, if you have a group
of classes or qualities (for instance, you have a dataset containing records
of many breeds of dogs or types of products), you can use the most frequent
class in the group to represent them all, which is called the mode.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
As an example of decision tree use, this section uses the same Ross Quinlan data-
set discussed in the “Envisioning the world as a graph” section, earlier in the
chapter. Using this dataset lets us present and describe the ID3 algorithm, a special
kind of decision tree found in the paper “Induction of Decision Trees,” mentioned
previously in this chapter. The dataset is quite simple, consisting of only 14
observations relative to the weather conditions, with results that say whether
playing tennis is appropriate.
WEEK 9: PERFORMING DATA ANALYSIS FOR AI AND EMPLOYING MACHINE LEARNING IN AI
Even though the play tennis dataset in the previous section illustrates
the nuts and bolts of a decision tree, it has little probabilistic appeal
because it proposes a set of deterministic actions (it has no conflicting
instructions). Training with real data usually doesn’t feature such sharp
rules, thereby providing room for ambiguity and the likelihood of the
hoped-for outcome.