1694266379-Unit1 Machine Learning Introduction CU 2.0
1694266379-Unit1 Machine Learning Introduction CU 2.0
Unit 1
Machine Learning:
Introduction
Machine Learning: Introduction
Disclaimer
The content is curated from online/offline resources and used for educational purpose only
Machine Learning: Introduction
Machine Learning: Introduction
Learning Objectives
Reference link
Machine Learning: Introduction
Click here
Reference link
Machine Learning: Introduction
Model
Machine Learning: Introduction
Click here
Reference link
Machine Learning: Introduction
Types of ML
Machine Learning: Introduction
https://studio.azureml.net/
Machine Learning: Introduction
https://studio.azureml.net/
Machine Learning: Introduction
Python
Machine Learning: Introduction
Python - Uses
WEB SOFTWARE
MATHEMATICS DATA SCIENCE
DEVELOPMENT DEVELOPMENT
Python Applications
Machine Learning: Introduction
Anaconda : Introduction
• An easy-to-install collection of high-performance
Python libraries
• For managing packages and environments.
• Can use Conda to install over 1.5k packages
(including the R language) from the Anaconda
public repository.
• More than 20k packages from community channels,
such as Conda-forge and bioconda
Machine Learning: Introduction
Anaconda Installation
• Visit the following link: https://www.anaconda.com/distribution/
• Scroll down the page and select windows.
Anaconda
Machine Learning: Introduction
Anaconda Installation….
• Download version matching to your machine
https://www.anaconda.com/download/
Machine Learning: Introduction
Anaconda Installation….
• Run the installation file and accept product terms
https://docs.anaconda.com/free/anaconda/install/windows/
Machine Learning: Introduction
Anaconda Navigator
• Anaconda Navigator is a desktop graphical user interface included in Anaconda that allows you to
launch applications and easily manage conda packages, environments and channels without the
need to use command line commands.
https://anaconda.org/anaconda/anaconda-navigator
Machine Learning: Introduction
Types of Data
Example
• Nominal – Good, Bad,…
• Ordinal – First, Second….
• Discrete – Student count
• Continuous -- Temperature
Reference
Machine Learning: Introduction
Scikit-Learn Library
• A free machine learning library.
• Includes most of the classification, regression and clustering algorithms.
• Works with numerical and scientific libraries, NumPy and SciPy.
• Machine learning pipelined tasks are already in scikit learn.
• Includes pre-processing, feature selection, data splitting, customize algorithms, fitting models,
tuning parameters, prediction, evaluation, and exporting the model.
• Has an extended support for Deep learning and cloud services.
Machine Learning: Introduction
Training Data
Features
import sklearn
features = [[140, 1], [130, 1], [150, 0], 0: bumpy ; 1: smooth
[170, 0]] 0: apple ; 1: orange
labels = [0, 0, 1, 1]
Machine Learning: Introduction
Classifier
Decision Tree
• Box of RULES
• Learning Algorithms are the procedure that
creates RULES, by finding patterns in your
training DATA.
• Ex: It creates RULE that heavier fruit is more
likely to be an orange!
Machine Learning: Introduction
Reference
Machine Learning: Introduction
Git
Click here
Reference link
Machine Learning: Introduction
GitHub
• Provider of Internet hosting for software development and version control.
• Offers the distributed version control
• Supports source code management (SCM)
Click here
Reference link
Machine Learning: Introduction
Git GitHub
Installed locally Hosted in cloud
First released in 2005 Company launched in 2008
Maintained by The Linux Foundation Purchase in 2018 by Microsoft
Focused on version control and code sharing Focused on centralized source code hosting
Competes with Mercurial, Subversion, IBM, Rational Competes with Atlassian Bitbucket and GitLab
Team Concert and ClearCase
Open source licensed Includes a free tier and pay-for-use tiers
Machine Learning: Introduction
Version Controlling
• Version control (also known as revision control, source control, or source code management)
• Responsible for managing changes to computer programs.
• Handle documents, large web sites, or other collections of information.
Machine Learning: Introduction
Distributed control
Machine Learning: Introduction
Centralised control
Machine Learning: Introduction
Code-Cycle
Click here
Reference link
Machine Learning: Introduction
Click here
Reference link
Machine Learning: Introduction
Git Commands
remote
branc
branch check
checkout merg
merge log remot
add
push
log push
h -out e e add
Click here
Reference link
Machine Learning: Introduction
Processing Stages
• Untracked: Files which are newly created in working directory and git does not aware of these files.
• Staged: Files which are added to staging area. These files are ready to commit.
• Committed: Files which is committed and placed in local repository/ Committed State.
• Modified: File which is already tracked by git. But is modified in working directory .
Machine Learning: Introduction
Git-Flow
Staging Tree
Branching
GitHub
Machine Learning: Introduction
Summary
• In the first section, we see definition of Machine Learning, that enables computers to learn from data. We
delve into key types like Supervised, Unsupervised, and Reinforcement Learning, showcasing their real-
world applications and examining different Machine Learning products.
• The second part focuses on Git and GitHub. Git is a version control system, while GitHub is a collaborative
platform. We explain their roles in tracking changes, facilitating teamwork, and managing conflicts.
Towards the end, we guide you through creating a GitHub account.
• Emphasizing best practices for version control, we highlight the benefits of using Git and GitHub for
efficient collaboration and code management.
Machine Learning: Introduction
1. Which type of Machine Learning involves learning from a labeled dataset to make
a) Unsupervised Learning
b) Supervised Learning
c) Semi-Supervised Learning
d) Reinforcement Learning
B) Supervised Learning
Machine Learning: Introduction
2. Which type of Machine Learning Library use for Prediction of based on past data
a) Pandas
b) Numpy
c) Sci-kit Learn (skleran)
d) CV
a) Distributed
b) Centralized
Answer: a) Distributed
Machine Learning: Introduction
a) lineplot
b) Seaborn
c) matplotlib
d) scatterplot
Answer – b and c
Machine Learning: Introduction
References
• https://en.wikipedia.org/wiki/Git
• https://en.wikipedia.org/wiki/GitHub
• https://medium.com/machine-learning-101
• https://medium.com/@randylaosat/a-beginners-guide-to-machine-learning-dfadc19f6caf
• https://sml.csa.iisc.ac.in/Courses/Spring21/E0_270/pdfs/1.pdf
• https://www.geeksforgeeks.org/difference-between-git-and-github/
• https://link.springer.com/book/10.1007/978-3-030-81935-4
• https://ai.stanford.edu/~nilsson/MLBOOK.pdf
• https://mitpress.mit.edu/9780262043793/introduction-to-machine-learning/
Machine Learning: Introduction
Thank you...!