SlideShare a Scribd company logo
1 of 23
An Introduction to
Machine Learning and Deep Learning
Workshop-01
What is Machine Learning?
Supervised Learning
•
•
Linear
Regression
Linear Regression is the
supervised Machine Learning
model in which the model finds
the best fit linear line between the
independent and dependent
variable i.e. it finds the linear
relationship between the
dependent and independent
variable.
Parameters
:
Hypothesis:
Cost Function:
Goal:
• Our Goal now is to minimise the error. i.e. to
minimise the Cost function.
• We need to find the perfect parameters
such that the mean error is minimum.
Understanding the Mathematical and Intuitive Aspects
Logistic
Regression
• Type of statistical model (also
known as logit model), often
used for classification and
predictive analytics.
• Logistic regression estimates
the probability of an event
occurring, such as voting or
not voting, based on a given
dataset of independent
variables.
we have,
We use the "Sigmoid Function," also called the "Logistic
Function":
g(z) outputs a value between 0 and
1
Cost Function:
Prediction
:
Remember that the general form of gradient descent
is:
We can fully write out our entire cost function as
follows:
Gradient
Descent:
k-nearest
neighbours algorithm
This algorithm is based on the assumption
that data points that are close to each other
in space are more likely to belong to the
same class.
Choosing the value of K:
What is Unsupervised learning?
•
•
k-means
algorithm
Step 0: Randomly initialise k cluster
centroids.
Repeat {
Step 1: Assign points to cluster
centroids
Step 2: Move cluster centroids.
}
DEEP LEARNING
•
•
Why Deep Learning?
The people in these photos are
infact not real. Yes!! These
people do not exist.
reference: thispersondoesnotexist.com
An architecture called StyleGAN
is used to generate these
almost real faces.
StyleGAN is a modified architecture
of Generative Adversarial
Networks(GANs) which is capable of
generating real-life images
Artificial Neural Networks
The term "Artificial Neural Network" is derived from Biological
neural networks that develop the structure of a human brain.
Similar to the human brain that has neurons interconnected to
one another, artificial neural networks also have neurons that are
interconnected to one another in various layers of the networks.
These neurons are known as nodes.
A Biological Neuron
A typical ANN
Mathematics behind Neural Networks
Convolutional Neural Networks
• A Convolutional Neural Network, also known as CNN or ConvNet, is a class of neural networks that specializes
in processing data that has a grid-like topology, such as an image.
• A digital image is a binary representation of visual data. It contains a series of pixels arranged in a grid-like
fashion that contains pixel values to denote how bright and what color each pixel should be.
A CNN typically has three layers: convolutional,pooling and a fully connected layer.
Principle of convolution
• The principle of the convolution is to slide across the input image from the left to the
right and from the top to the bottom using a specific size window.
• The sliding window in the CNN is called the filter (or kernel), and the area slipped by the
filter is called the receptive field.
• The matrix and the pixel values of the images multiply when the convolutional layer
passes the filter after that the values are added and then deviation value is added.
𝑦=∑(𝑥𝑖𝑗×𝑓𝑖𝑗)+𝑏
Calculation process for the features of the convolution layer
Recurrent Neural Networks
• A recurrent neural network (RNN) is a type of artificial neural network which uses sequential data or time series data.
• These deep learning algorithms are commonly used for ordinal or temporal problems, such as language translation,
natural language processing (nlp), speech recognition, and image captioning.
• Like feedforward and convolutional neural networks (CNNs), recurrent neural networks utilize training data to learn.
They are distinguished by their “memory” as they take information from prior inputs to influence the current input and
output.
• While traditional deep neural networks assume that inputs and outputs are independent of each other, the output of
recurrent neural networks depend on the prior elements within the sequence.
Transformers
Generative Adversarial Networks(GANs)
• Generative Adversarial Networks, or GANs for short, are an approach to generative modeling using deep
learning methods, such as convolutional neural networks.
• Generative modeling is an unsupervised learning task in machine learning that involves automatically
discovering and learning the regularities or patterns in input data in such a way that the model can be used to
generate or output new examples that plausibly could have been drawn from the original dataset.
• GANs are made up of two neural networks
named Generator and Discriminator.
• The generator part of a GAN learns to create
fake data by incorporating feedback from the
discriminator. It learns to make the
discriminator classify its output as real.
• The discriminator in a GAN is simply a
classifier. It tries to distinguish real data from
the data created by the generator. It could
use any network architecture appropriate to
the type of data it's classifying.
Resource
s
• Andrew NG machine learning specialisatiation
• Pytorch Turtorials by Daniel Bourke
• TensorFlow tutorials by Alladin perssson
• Andrew NG Deep Learning Specialisation
• Summer Analytics 2023, IIT Guwahati

More Related Content

What's hot

Astrophysics Presentation
Astrophysics PresentationAstrophysics Presentation
Astrophysics Presentation
Akshay Sharma
 

What's hot (20)

Introduction to Ansys Simulation- Global leader
Introduction to Ansys Simulation- Global leaderIntroduction to Ansys Simulation- Global leader
Introduction to Ansys Simulation- Global leader
 
I do like cfd vol 1 2ed_v2p2
I do like cfd vol 1 2ed_v2p2I do like cfd vol 1 2ed_v2p2
I do like cfd vol 1 2ed_v2p2
 
Ansys tutorial
Ansys tutorialAnsys tutorial
Ansys tutorial
 
Physics seminar
Physics seminarPhysics seminar
Physics seminar
 
Astrophysics Presentation
Astrophysics PresentationAstrophysics Presentation
Astrophysics Presentation
 
Kane/DeAlbert dynamics for multibody system
Kane/DeAlbert dynamics for multibody system Kane/DeAlbert dynamics for multibody system
Kane/DeAlbert dynamics for multibody system
 
Using MpCCI to model Fluid-Structure-Interactions with ABAQUS and 3rd party C...
Using MpCCI to model Fluid-Structure-Interactions with ABAQUS and 3rd party C...Using MpCCI to model Fluid-Structure-Interactions with ABAQUS and 3rd party C...
Using MpCCI to model Fluid-Structure-Interactions with ABAQUS and 3rd party C...
 
State space modelling of a quadcopter
State space modelling of a quadcopterState space modelling of a quadcopter
State space modelling of a quadcopter
 
AS Level Physics' Radioactivity Presentation
AS Level Physics' Radioactivity PresentationAS Level Physics' Radioactivity Presentation
AS Level Physics' Radioactivity Presentation
 
UNIT - V ROCKET PROPULSION
UNIT - V ROCKET PROPULSIONUNIT - V ROCKET PROPULSION
UNIT - V ROCKET PROPULSION
 
Nano uav
Nano uavNano uav
Nano uav
 
1U-3U+ Cubesat Deployer by JSC SRC "Progress"
1U-3U+ Cubesat Deployer by JSC SRC "Progress"1U-3U+ Cubesat Deployer by JSC SRC "Progress"
1U-3U+ Cubesat Deployer by JSC SRC "Progress"
 
Guided Wave Propagation Simulation by ANSYS
Guided Wave Propagation Simulation by ANSYS Guided Wave Propagation Simulation by ANSYS
Guided Wave Propagation Simulation by ANSYS
 
Chapter 7 nuclear physics
Chapter 7 nuclear physicsChapter 7 nuclear physics
Chapter 7 nuclear physics
 
Electromagnetic waves
Electromagnetic wavesElectromagnetic waves
Electromagnetic waves
 
Future inventions of aerospace engineering presentation
Future inventions of aerospace engineering presentationFuture inventions of aerospace engineering presentation
Future inventions of aerospace engineering presentation
 
FEA MESH QUALITY PARAMETER
FEA MESH QUALITY PARAMETERFEA MESH QUALITY PARAMETER
FEA MESH QUALITY PARAMETER
 
Company Profile
Company ProfileCompany Profile
Company Profile
 
A brief history of particle accelerators (Nuclear Physics)
A brief history of particle accelerators (Nuclear Physics) A brief history of particle accelerators (Nuclear Physics)
A brief history of particle accelerators (Nuclear Physics)
 
ION THRUSTERS (an application of plasma physics) ppt
ION THRUSTERS (an application of plasma physics) pptION THRUSTERS (an application of plasma physics) ppt
ION THRUSTERS (an application of plasma physics) ppt
 

Similar to ML in Astronomy - Workshop 1.pptx

Neural network
Neural networkNeural network
Neural network
Saddam Hussain
 
Machine learning Module-2, 6th Semester Elective
Machine learning Module-2, 6th Semester ElectiveMachine learning Module-2, 6th Semester Elective
Machine learning Module-2, 6th Semester Elective
MayuraD1
 
Deep Learning
Deep LearningDeep Learning
Deep Learning
Pierre de Lacaze
 

Similar to ML in Astronomy - Workshop 1.pptx (20)

Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its Applications
 
DL.pdf
DL.pdfDL.pdf
DL.pdf
 
A Survey of Convolutional Neural Networks
A Survey of Convolutional Neural NetworksA Survey of Convolutional Neural Networks
A Survey of Convolutional Neural Networks
 
Automatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognition
 
Artificial Intelligence(Machine learning & deep Learning ).pptx
Artificial Intelligence(Machine learning & deep Learning ).pptxArtificial Intelligence(Machine learning & deep Learning ).pptx
Artificial Intelligence(Machine learning & deep Learning ).pptx
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional Face
 
Neural network
Neural networkNeural network
Neural network
 
Machine learning Module-2, 6th Semester Elective
Machine learning Module-2, 6th Semester ElectiveMachine learning Module-2, 6th Semester Elective
Machine learning Module-2, 6th Semester Elective
 
TensorFlow.pptx
TensorFlow.pptxTensorFlow.pptx
TensorFlow.pptx
 
Deep learning
Deep learning Deep learning
Deep learning
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
 
softcomputing.pptx
softcomputing.pptxsoftcomputing.pptx
softcomputing.pptx
 
Deep learning from a novice perspective
Deep learning from a novice perspectiveDeep learning from a novice perspective
Deep learning from a novice perspective
 
Deep learning
Deep learningDeep learning
Deep learning
 
Wits presentation 6_28072015
Wits presentation 6_28072015Wits presentation 6_28072015
Wits presentation 6_28072015
 
Artificial Neural Network (ANN
Artificial Neural Network (ANNArtificial Neural Network (ANN
Artificial Neural Network (ANN
 
Visualization of Deep Learning
Visualization of Deep LearningVisualization of Deep Learning
Visualization of Deep Learning
 
Introduction to Machine learning & Neural Networks
Introduction to Machine learning & Neural NetworksIntroduction to Machine learning & Neural Networks
Introduction to Machine learning & Neural Networks
 
Deep Learning
Deep LearningDeep Learning
Deep Learning
 
neuralnetwork.pptx
neuralnetwork.pptxneuralnetwork.pptx
neuralnetwork.pptx
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 

ML in Astronomy - Workshop 1.pptx

  • 1. An Introduction to Machine Learning and Deep Learning Workshop-01
  • 2. What is Machine Learning?
  • 4. Linear Regression Linear Regression is the supervised Machine Learning model in which the model finds the best fit linear line between the independent and dependent variable i.e. it finds the linear relationship between the dependent and independent variable.
  • 5. Parameters : Hypothesis: Cost Function: Goal: • Our Goal now is to minimise the error. i.e. to minimise the Cost function. • We need to find the perfect parameters such that the mean error is minimum. Understanding the Mathematical and Intuitive Aspects
  • 6. Logistic Regression • Type of statistical model (also known as logit model), often used for classification and predictive analytics. • Logistic regression estimates the probability of an event occurring, such as voting or not voting, based on a given dataset of independent variables.
  • 7. we have, We use the "Sigmoid Function," also called the "Logistic Function": g(z) outputs a value between 0 and 1 Cost Function: Prediction :
  • 8. Remember that the general form of gradient descent is: We can fully write out our entire cost function as follows: Gradient Descent:
  • 9. k-nearest neighbours algorithm This algorithm is based on the assumption that data points that are close to each other in space are more likely to belong to the same class. Choosing the value of K:
  • 10. What is Unsupervised learning? • •
  • 11. k-means algorithm Step 0: Randomly initialise k cluster centroids. Repeat { Step 1: Assign points to cluster centroids Step 2: Move cluster centroids. }
  • 12.
  • 15. The people in these photos are infact not real. Yes!! These people do not exist. reference: thispersondoesnotexist.com An architecture called StyleGAN is used to generate these almost real faces. StyleGAN is a modified architecture of Generative Adversarial Networks(GANs) which is capable of generating real-life images
  • 16. Artificial Neural Networks The term "Artificial Neural Network" is derived from Biological neural networks that develop the structure of a human brain. Similar to the human brain that has neurons interconnected to one another, artificial neural networks also have neurons that are interconnected to one another in various layers of the networks. These neurons are known as nodes. A Biological Neuron A typical ANN
  • 18. Convolutional Neural Networks • A Convolutional Neural Network, also known as CNN or ConvNet, is a class of neural networks that specializes in processing data that has a grid-like topology, such as an image. • A digital image is a binary representation of visual data. It contains a series of pixels arranged in a grid-like fashion that contains pixel values to denote how bright and what color each pixel should be. A CNN typically has three layers: convolutional,pooling and a fully connected layer.
  • 19. Principle of convolution • The principle of the convolution is to slide across the input image from the left to the right and from the top to the bottom using a specific size window. • The sliding window in the CNN is called the filter (or kernel), and the area slipped by the filter is called the receptive field. • The matrix and the pixel values of the images multiply when the convolutional layer passes the filter after that the values are added and then deviation value is added. 𝑦=∑(𝑥𝑖𝑗×𝑓𝑖𝑗)+𝑏 Calculation process for the features of the convolution layer
  • 20. Recurrent Neural Networks • A recurrent neural network (RNN) is a type of artificial neural network which uses sequential data or time series data. • These deep learning algorithms are commonly used for ordinal or temporal problems, such as language translation, natural language processing (nlp), speech recognition, and image captioning. • Like feedforward and convolutional neural networks (CNNs), recurrent neural networks utilize training data to learn. They are distinguished by their “memory” as they take information from prior inputs to influence the current input and output. • While traditional deep neural networks assume that inputs and outputs are independent of each other, the output of recurrent neural networks depend on the prior elements within the sequence.
  • 22. Generative Adversarial Networks(GANs) • Generative Adversarial Networks, or GANs for short, are an approach to generative modeling using deep learning methods, such as convolutional neural networks. • Generative modeling is an unsupervised learning task in machine learning that involves automatically discovering and learning the regularities or patterns in input data in such a way that the model can be used to generate or output new examples that plausibly could have been drawn from the original dataset. • GANs are made up of two neural networks named Generator and Discriminator. • The generator part of a GAN learns to create fake data by incorporating feedback from the discriminator. It learns to make the discriminator classify its output as real. • The discriminator in a GAN is simply a classifier. It tries to distinguish real data from the data created by the generator. It could use any network architecture appropriate to the type of data it's classifying.
  • 23. Resource s • Andrew NG machine learning specialisatiation • Pytorch Turtorials by Daniel Bourke • TensorFlow tutorials by Alladin perssson • Andrew NG Deep Learning Specialisation • Summer Analytics 2023, IIT Guwahati