FML Winter 24 Lecture 1 Introduction
FML Winter 24 Lecture 1 Introduction
• Scientists then came up with laws that explain the observetions in terms of
collected data
• This is essential in the digital age where data is widely generated, recorded
and freely available
• At the same time, general problems have been studied well and algorithms
based on causality have saturated to a great extend
• Once, if you were smart, you invented a new algorithm; now, if you are smart,
you find a source of data for your learning algorithms
Machine Learning
• In machine learning, the aim is to have a computer program that learns
• As the program sees more data, its output leads to higher performance
according to the criterion that is to be optimized
Machine Learning (contd.)
• In machine learning, the aim is to have a computer program that learns
• With examples, the parameters are updated slightly at each example, so that
the performance improves gradually in time.
Machine Learning vs Programming
Industry profiles related to ML
• Domain Experts: Have domain knowledge, business insights, know what
data is important and where to find it, identify the real impact of a ML model
• Data Scientists: Full stack experts on data handling, data cleaning, data
mining, model training, model deployment and data visualization
• Anomaly detection
– Fraudulent credit card transactions, money transfers
– Spam detection for calls, texts, e-mails
– Intrusion detection from videos
– Unusual readings from sensors in nuclear powerplant
Applications of ML in Industry
• Prediction
– Stock prices, Housing prices or rents
– Trajectory of a vehicle like car or aircraft
– Customer preferences in shopping
– Maintainence of machines, quality control and service
• Generation of patterns
– Text to speech/image/video generation
– Style modification in speech/image/video
– Synthetic sensor data for power plants, vehicle navigation
– Customized content generation
Types of Learning: Supervised Learning
• Given training data and desired outputs (labels)
Types of Learning: Semi-Supervised Learning
• Given training data and few desired outputs (labels)
Types of Learning: Unsupervised Learning
• Given training data without desired outputs (labels)
Types of Learning: Reinforcement Learning
• Rewards from sequence of events
Sample Application: House price prediction
• A realtor wants to list a house for sale in a particular neighborhood
• What will be an appropriate price of the house?
• If you are given data: details of sold houses in neighborhood, can you predict?
House price prediction: Role of Linear Algebra
• Data is given in the following form:
– House 1 with two bedrooms and 10 cents plot area sold for Rs 30,00,000.
– House 2 with three bedrooms and 11 cents plot area sold for Rs 50,00,000.
• Given your house with three bedrooms and 8 cents plot area, can you predict
an appropriate price?
House price prediction: Role of Linear Algebra
• Data is given in the following form:
– House 1 with two bedrooms and 10 cents plot area sold for Rs 30,00,000.
– House 2 with three bedrooms and 11 cents plot area sold for Rs 50,00,000.
• Given your house with three bedrooms and 8 cents plot area, can you predict
an appropriate price?
• Can you predict the price for x1=3 and x2=8 (cents) ?
[2 10 [x1 = 30,00,000
3 11] x2] = 50,00,000
Deterministic vs Stochastic environment
• Deterministic environment in AI is an environment setting where the outcome
of an action is determined by the current state and action
• In deterministic environment, there is no randomness involved
• Given initial conditions and actions, the environment will always produce the
same outcome (predictable)
• In real-world situations, not all scenarios follow a predictable path. Many
involve factors like uncertainty, randomness, or incomplete information.
• Stochastic Environment in AI is the environment in which the outcomes are
affected by randomness.
• Stochastic environment introduces an element of unpredictability, that can
arise from various sources such as random events, probabilistic transitions
between states or incomplete information about environment.
• In stochastic environments, AI systems must integrate probabilistic models or
methods to manage uncertainty successfully.