Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
57 views60 pages

Overview of Machine Learning

Overview of machine learning

Uploaded by

Kaleab Legese
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views60 pages

Overview of Machine Learning

Overview of machine learning

Uploaded by

Kaleab Legese
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 60

Overview of Machine Learning

Matias B. Dec 2024


Outline

• Course Syllabus

• Overview of machine learning


Course Description

• Help you understand how state of the art machine learning


algorithms work.
• Design a machine learning approach to solve
specific problems.

• Understand the current research issues and trends in


Machine learning
Learning Objectives

• Upon successful completion of this course, students will:


– Abel to analyze and solve machine learning problems

– Compare different ML algorithms according


to the properties of their inputs and outputs.
– Get a research skills to locate and utilize the literature in
ML .
Topics to be Covered

• Machine learning overviews


• Supervised learning
• Unsupervised learning
• Deep learning
Machine Learning an Overview
“Any sufficiently advanced technology is
indistinguishable from magic.” – Arthur C.
Clarke (1961)
Learning

• Definition of learning:

– To get knowledge of by study, experience, or being taught;


– To become aware by information or from observation;
– To commit to memory;
– To be informed of ascertain;
– To receive instruction.

• These meanings have some shortcomings when it comes to


talking about computers.
Learning Problems

We wonder whether computers might be made to learn.

• How a computer learn to drive an autonomous


vehicle?

Image src: autonomou

• How a computer learn to recognize handwritten


words.
Learning Problem

• Imagine computers
– Learning from medical records which treatments are most
effective for new diseases

– Houses learning from experience to optimize


energy costs based on the particular usage patterns of
their occupants

– Personal software assistants learning the evolving interests


of their users in order to highlight especially relevant
stories from the online morning newspaper.
What is learning
• Suppose we would like to program a machine that learns how
to filter spam e-mails.

– Memorize all previous e-mails that had been labeled as


spam e-mails by the human user
– When a new e-mail arrives-search for it in the set of
previous spam e-mails
• Is it a machine learning?
What is learning?
• It lacks an important aspect of learning systems the ability to
label unseen e-mail messages.

• A successful learner should be able to progress from


individual examples to broader generalization-- inductive
reasoning or inductive inference

• The incorporation of prior knowledge, biasing the learning


process, is inevitable for the success of learning algorithms

• The stronger the prior knowledge, the easier it is to learn


from further examples
The Science Witchcraft– a learning machine

Learning Machine:
• Refers to an artificial intelligence or machine learning system
designed to acquire knowledge, adapt, and improve over time
based on data inputs.
• Such machines analyze patterns, make predictions, and can even
generate new information or insights.
ML-History

• ML grew out of the ambitious goal of artificial intelligence.

Image source: weblizar.com


ML-History

• In AI problems approached with various Symbolic methods,


neural networks, the generalized linear models of statistics
and probabilistic reasoning.

• Probabilistic reasoning faced a practical problem in data


acquisition.

• Expert systems had come to dominate AI, and statistics was


out of favor.
ML-History
• Machine learning, reorganized as a separate field, started to
flourish in the 1990s.

• The field changed its goal from achieving artificial intelligence


to tackling solvable problems of a practical nature.

• We do not yet know how to make computers learn nearly as


well as people learn.

• ML algorithms have been invented that are effective


for certain types of learning tasks.
Definition

• Definition

– In 1959, Arthur Samuel defined ML as a “Field of study that


gives computers the ability to learn without being explicitly
programmed”.

– Tom Mitchell (1998): “a computer program is said to learn from


experience E with respect to some class of tasks T and
performance measure P, if its performance at tasks in T, as
measured by P, improves with experience E.”
Machine Learning

• Machine learning is the practice of programming


computers to learn from data.
• In machine learning, data referred to as called training
sets or examples.
• When you have a problem that requires many long
lists of rules to find the solution, In this case, machine-
learning techniques can simplify your code and improve
performance.
Machine Learning

• Goal:-

– Build a model from inputs in order to make data-driven


predictions or decisions, rather than following strictly static
program instructions.

- With machine learning we can gain insight from a dataset; we’re


going to ask the computer to make some sense from data.
Machine Learning

Taken from Eric: Intro. to


machine learning
Basic Difference in ML and Traditional Programming?

• Traditional Programming: We feed in DATA (Input) + PROGRAM


(logic), run it on the machine, and get the output.
• Machine Learning: We feed in DATA(Input) + Output, run it on the
machine during training and the machine creates its own
program(logic), which can be evaluated while testing.
When Do We Need Machine Learning?

• Two aspects of a given problem may call for the use of


programs that learn and improve on the basis of their
experience:

– Tasks That Are Too Complex to Program–


humans do
routinely or tasks beyond human capability

– Adaptivity:- many tasks change over time or from one user to


another
Designing a learning system

• In order to complete the design of the learning system, we


must choose:

– The exact type of knowledge to be learned


Data
– A representation for this target knowledge
– A learning mechanism
Data – Key Ingredient of ML

• The of experience, or training, in


component
learning often refers
machine
to data.

• In ML data is viewed as list of examples

• Collected from nature or industrial process


– Sorted in many forms: structured and
unstructured
Data Everywhere

• Google: search 3.5 billion searches per day.

• Facebook: More than 250 billion photos have been uploaded


to Facebook. This equates to 350 million photos per day. -
2019
Data Everywhere

• Youtube: 300 hours of video are uploaded to YouTube every


minute! Almost 5 billion videos are watched on Youtube every
single day- Feb 2020.

• Twitter: Every second, on average, around 6,000 tweets are


tweeted on Twitter, which corresponds to over 350,000 tweets
sent per minute, 500 million tweets per day and around 200
billion tweets per year – 2019.
Data Types

• Data comes in different sizes and also types:


– Texts
– Numbers
– Click streams
– Graphs
– Tables
– Images
– Transactions
– Videos
– Some or all of the above!
Data Types from ML Perspective

• There are 4 basic types of data:


– Numerical: measurable can be continuous (height, weight,
temperature) or discrete (unit sold, no of language spoken).

– Categorical: can be nominal or ordinal (order matters)

– Time series: numbers collected at regular intervals over some


period of time

– Text: a collection of words


Machine Learning Paradigms

• Supervised versus Unsupervised:


– Learning tasks divided according to the nature of that
interaction with a teacher
– Spam e-mail detection
• Supervised learning describes a scenario in which the
experience contains significant information
– A teacher that supervises the learner by
providing the extra
information (labels)
Kinds of ML

• ML tasks are typically classified into three broad categories


Supervised Learning
• In this type of machine-learning system, the data that you
feed in to the algorithm, with the desired solution, are
referred to as “labels”.
Supervised Learning
• The computer is presented with example inputs and their
desired outputs to learn a general rule that maps inputs to
outputs.
• The existence of a “teacher” who knows the right answer
– Goal: to find a good function f which maps (x1, x2, … xd) → y
by minimizing the error (loss) function.
– What is this function? How do we find it?
– What ever this function is, we would like to map out inputs
to the right output.
– Need some metric to tell us close we are to the ideal function

Supervised because we’re telling the algorithm what to predict


Supervised Learning

• Algorithms: Classification (Support Vector Machines, neural


networks, decision trees, K-nearest neighbors, naïve Bayes) ,
Regression

Image src: Supervise learning method


Supervised Learning

• Supervised learning problems are categorized by the type of


the output domain:
– If y = R, this problem is called regression

– If y is a categorical variable (part of a finite discrete set)–


called classification
– In general, y could be a lot more complex (graph, tree, …)
called structured prediction
Examples
• Predicting real estate prices
• Classifying whether bank transactions are fraudulent or not
• Finding disease risk factors
• Determining whether loan applicants are low-risk or high-risk
• Predicting the failure of industrial equipment's mechanical parts
• sales forecasting,
• and fraud detection
Unsupervised learning

• No labels are given to the learning algorithm.


• Find interesting information or pattern in the input data.
• Example: clustering, dimensionality reduction, association
rule mining

Image src: unsupervised learning


Reinforcement learning
• A computer program interacts with a dynamic environment in
which it must perform a certain action.
– Learning what actions to take based on a reward signal

– Involves an assumption of being in a state S1 and evaluating


the chance of changing to another S2

– In the end (along the way) a reward signal is received.

– Want to take action to get the most reward possible.

– The objective is to maximize the long-term cumulative reward.


Reinforcement learning

• An agent “AI system” will observe the environment,


perform given actions, and then receive rewards in
return.
• With this type, the agent must learn by itself.
• You can find this type of learning type in many
robotics applications that learn how to walk.
Reinforcement learning
• The algorithm can collect data interactively

Try the strategy and Data Improve the strategy


collect feedbacks collection Training based on the
feedbacks
Issues in Machine Learning

• The field of machine learning is concerned with answering


questions such as:
– What algorithms exist for learning from specific training
examples?

– In what settings will particular algorithms converge to the


desired function, given sufficient training data?

– Which algorithms perform best for which types of


problems
and data types?
Issues in Machine Learning

• How much training data is sufficient?

• How can the learner automatically alter its representation to


improve its ability to represent and learn the target function?
Application of ML

• Bioinformatics, Brain-machine interfaces, Classifying


DNA sequences, Computer vision, Object recognition.

• Detecting credit card fraud, Information Interne


tretrieval,
frauddetection, Medical diagnosis, Natural
processing, Recommender systems
language

• Search Sentiment analysis (or opinion mining),


Sequence
engines, mining, Speech and handwriting recognition, Stock
market analysis, Weather forecast, spam filtering, MRI image
analysis, Handwritten recognition, Scene classification.
IoT and ML
• In IoTalmost every electronic device are connected to a
local
network or the internet.

Image src: Towards Data


Science

• A study conducted by Cisco estimates that IoT devices will generate


600 zetta bytes of data per year by 2020.
ML in Search Engines

Image src: Search Engine Journal


ML in Biomedicine

Image src: ASU Bioinformatic Core Lab


ML in Signal Analysis
ML in Image Recognition

• Face recognition problem:


Whose face is this in the
picture?
• Humans recognize with
experience: The more we see
the faster we perceive.

• Hard to model describing


face
and its components
ML learning in Image processing

Image src: Katya


ML learning in Speech Recognition
ML Algorithms in Nutshell

•Tens of thousands of machine learning algorithms


- Hundreds new every year
• Every ML algorithm has three components:
• Representation: refers to how data and the learning
model are structured.
• Optimization: the process of adjusting the model
parameters to minimize the error (or loss) on the training
data.
• Evaluation: assesses how well the model performs on
unseen data.
ML Algorithms in Nutshell
• Numerical functions
– Linear regression
– Neural networks
– Support vector machines
• Symbolic functions
– Decision trees
– Rules in propositional logic
– Rules in first-order predicate logic
• Instance-based functions
– Nearest-neighbor
ML Algorithms in Nutshell
• Probabilistic Graphical Models
– Naïve Bayes
– Bayesian networks
– Hidden-Markov Models (HMMs)
– Probabilistic Context Free Grammars (PCFGs)
– Markov networks
Various Search/Optimization
Algorithms
• Gradient descent
– Perceptron
– Backpropagation

• Divide and Conquer


– Decision tree induction
– Rule learning
• Evolutionary Computation
– Genetic Algorithms (GAs)
– Genetic Programming (GP)
– Neuro-evolution
How to choose the right algorithm

• How can you choose which one to use?


– You need to consider your goal
• What are you trying to get out of this?
– Do you want a probability that it might rain tomorrow, or
do you want to find groups of voters with similar
interests?
• What data do you have or can you collect?
– If you’re trying to predict or forecast a target value, then you
need to look into supervised learning.
– If not, then unsupervised learning is the place you want to
be.
How to choose the right algorithm

• How can you choose which one to use?


– You should spend some time getting to know your data, and
the more you know about it, the better you’ll be able to build
a successful application.
– With the algorithm narrowed, there’s no single answer to
what the best algorithm is or what will give you the best
results.
• You are going to have to try different algorithms and
see how they perform.
Maths for Machine Learning

• Equations, Functions, and Graphs

• Differentiation and Optimization

• Linear algebra- vectors and Matrices

• Statistics and Probability


– Measures of central tendency, Spread of the data,
Distributions, Hypothesis testing, etc.
AI,ML and DL

• Artificial intelligence: It studies ways to build


intelligent programs and machines that can creatively
solve problems.
• Machine learning is a subset of artificial
intelligence (AI) that provides systems the
ability to automatically learn and improve
from experience without being explicitly
programmed.
• Deep learning, or deep neural
learning, is a subset of machine learning,
which uses the neural networks to analyze
different factors with a structure that is
References

• Neural Networks and Deep Learning by Michael Nilson


• The Elements of Statistical Learning by Trevor Hastie, Robert
Tibshirani & Jerome Friedman
• Machine Learning: A Probabilistic Perspective Kevin P.
Murphy, MIT Press, 2012.
• Pattern Recognition and Machine Learning Christopher M.
Bishop, Springer, 2006.
• Ian H. Witten and Eibe Frank . Data Mining: Practical
Machine
Learning Tools and Techniques, 2005.
• Josh Patterson and Adam Gibson. Deep Learning: A
Practitioner’s Approach, 2017.
Thank you

You might also like