SlideShare uma empresa Scribd logo
1 de 36
Introduction about Jupyter
Notebook and Azure Machine
Learning Studio
Muralidharan Deenathayalan,
Technical Architect, Quanticate
1
What is Python?
• Python is an interpreted language.
• Python is an object-oriented, high-level programming language for general-purpose programming
• Created by Guido van Rossum and first released in 1991
2
Advantages of Python
• Extensive Support Libraries
• Integration Feature
• Improved Programmer’s Productivity
Ref : https://medium.com/@mindfiresolutions.usa/advantages-and-disadvantages-of-python-programming-language-fd0b394f2121
3
What is R ?
• R is a language and environment for statistical computing and graphics.
• It is a GNU project which is similar to the S language and environment which was developed at Bell
Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues.
• R can be considered as a different implementation of S
Ref : https://www.r-project.org/about.html
4
Advantages of R
• An effective data handling and storage facility.
• Suite of operators for calculations on arrays, in particular matrices.
• A large, coherent, integrated collection of intermediate tools for data analysis.
• Graphical facilities for data analysis and display either on-screen or on hardcopy.
• A well-developed, simple and effective programming language which includes conditionals, loops, user-
defined recursive functions and input and output facilities
Ref : https://www.r-project.org/about.html
5
What is Julia?
• Julia is a high-level, high-performance dynamic programming language for numerical computing.
• Julia provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an
extensive mathematical function library.
• Julia’s Base library, largely written in Julia itself.
• It integrates mature, best-of-breed open source C and Fortran libraries for linear algebra, random
number generation, signal processing, and string processing.
Ref :https://julialang.org/
6
Advantages of Julia
• Multiple dispatch: providing the ability to define function behaviour across many combinations of
argument types.
• Good performance, approaching that of statically-compiled languages like C
• Built-in package manager
• Call Python functions: use the PyCall package
• Call C functions directly: no wrappers or special APIs
Ref :https://julialang.org/
7
Limitations of Julia
• Not fully stabilized
• Lesser scientific tools
• Slower
Ref : https://www.allerin.com/blog/big-data-python-r-or-julia
8
What is iPython?
• iPython – Interactive Python command shell.
• It provides a rich toolkit to help you make the most of using Python interactively.
• Its main components are:
• A powerful interactive Python shell
• A Jupyter kernel to work with Python code in Jupyter notebooks and other interactive frontends.
Ref : https://ipython.readthedocs.io/en/stable/
9
Advantages of iPython
• Comprehensive object introspection.
• Input history, persistent across sessions.
• Caching of output results during a session with automatically generated references.
• Extensible tab completion, with support by default for completion of python variables and keywords,
filenames and function keywords.
• Extensible system of ‘magic’ commands for controlling the environment and performing many tasks
related to iPython or the operating system.
Ref : https://ipython.readthedocs.io/en/stable/
10
Limitations of iPython
• No native code session save.
• Unnatural keyboard shortcuts and no syntax debugger.
• Code cell allows lines that are too long and has no wrapping / autoindent.
• No easy drag and rearrange code cells.
• No table of content to show where html headers are.
• No easy hiding of code cells / code output.
Ref : https://www.quora.com/What-are-the-limitations-of-IPython-Notebook
11
What is Jupyter?
• Ju(lia) + Py(thon) + (e)R
• The Jupyter Notebook is an open-source web application that allows you to create and share documents.
• This document contain live code, equations, visualizations and narrative text.
Ref : https://www.oreilly.com/ideas/what-is-jupyter
12
Advantages of Jupyter?
• Useful for data cleaning and transformation, numerical simulation, statistical modelling, data
visualization, machine learning, and much more.
• Language of choice  40+ Languages
• Notebooks can be shared with others using email, Dropbox, GitHub and the Jupyter Notebook Viewer.
• Your code can produce rich, interactive output: HTML, images, videos, and custom MIME types.
• Big data integration - Leverage big data tools, such as Apache Spark, from Python, R and Scala. Explore
that same data with pandas, scikit-learn, ggplot2, TensorFlow.
Ref : http://jupyter.org/
13
Limitations of Jupyter
• It messes with your version control.
• The Jupyter Notebook format is just a big JSON, which contains your code and the outputs of the code
• Code can only be run in chunks.
Ref : http://opiateforthemass.es/articles/why-i-dont-like-jupyter-fka-ipython-notebook/
14
History of Jupyter & iPython
• Initial release : 2001; 17 years ago
• In 2014, Fernando Pérez announced a spin-off project from IPython called Project Jupyter.
• In 2015, GitHub and the Jupyter Project announced native rendering of Jupyter notebooks file format
(.ipynb files) on the GitHub platform.
Ref : https://en.wikipedia.org/wiki/IPython , https://en.wikipedia.org/wiki/Project_Jupyter#History
15
How Jupyter works?
Ref : https://en.wikipedia.org/wiki/IPython , https://en.wikipedia.org/wiki/Project_Jupyter#History
16
What is kernel in Jupyter?
• A notebook kernel is a “Computational Engine” that executes the code contained in a Notebook
document.
Ref : http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is_jupyter.html
17
List of available Jupyter kernels
• There are 100+ kernels available (as of 22/11/2018)
• Interesting kernels are,
• IPyKernel
• IRKernel
• sas_kernel
• Ijava
• ICSharp
Ref : https://github.com/jupyter/jupyter/wiki/Jupyter-kernels
18
Installation of Jupyter Notebook
• http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/install.html
19
Jupyter Notebook on Cloud
• Navigate to https://notebooks.azure.com/
• Click Samples to navigate to https://notebooks.azure.com/Microsoft/libraries/samples
• Click anyone of the sample
• Click Clone option (You may get login dialog (if you’re not signed in, use your Hotmail/outlook/skype)
and login.)
• Enter library name and click Clone button
• Click on “Introduction to Python” sample and it launches, Jupyter notebook on Azure
• Select the statements on starts with In[1] … and select click Run button in the toolbar.
20
Sample Jupyter Notebook
• A simple python code sample from Jupyter Notebook.
21
Sample Jupyter Notebook
• Fetching data from Azure Machine Learning Studio to Jupyter Notebook.
22
What is Machine Learning(ML)?
• Machine Learning is about using the data you already have to make predictions.
• Machine Learning methods
Supervised machine learning algorithms
 Logistic Regression.
 Linear regression.
 Support vector machine (SVM)
Unsupervised machine learning algorithms
 K – means clustering
 Hierarchical clustering
 Hidden Markov models
Semi-supervised machine learning algorithms
Reinforcement machine learning algorithms
Ref : https://news.codecademy.com/what-is-machine-learning/, https://www.expertsystem.com/machine-learning-definition/ , http://dataaspirant.com/2014/09/19/supervised-and-
unsupervised-learning/ 23
Microsoft Azure Machine Learning Studio
• Navigate to https://studio.azureml.net/ (Sign- in, if not.)
24
Python and Azure ML
25
Python and Azure ML
import pandas as pd
def azureml_main(dataframe1):
for index, row in dataframe1.iterrows():
row[0]="Hello " + row[0] +"!"
# Return value must be of a sequence of pandas.DataFrame
return dataframe1
26
Python and Azure ML
27
Python and Azure ML Demo
Demo
28
R and Azure ML
29
R and Azure ML
dataset1 <- maml.mapInputPort(1)#class: data.frame
data.set <- data.frame(response=paste0("Hello ",dataset1$Names,"!"))
maml.mapOutputPort("data.set");
30
R and Azure ML
31
R and Azure ML Demo
Demo
32
Python, R and Azure ML
33
Q & A
Q & A
34
Keep in touch
Muralidharan Deenathayalan
Blogs : www.codingfreaks.net
Twitter : https://twitter.com/muralidharand
GitHub : https://github.com/muralidharand
LinkedIn : https://www.linkedin.com/in/muralidharand
35
Thanks
Thank you !
36

Mais conteúdo relacionado

Mais procurados

Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Rr
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1Ahmet Bulut
 
Python presentation
Python presentationPython presentation
Python presentationgaganapponix
 
IPython: A Modern Vision of Interactive Computing (PyData SV 2013)
IPython: A Modern Vision of Interactive Computing (PyData SV 2013)IPython: A Modern Vision of Interactive Computing (PyData SV 2013)
IPython: A Modern Vision of Interactive Computing (PyData SV 2013)PyData
 
11 Unit1 Chapter 1 Getting Started With Python
11   Unit1 Chapter 1 Getting Started With Python11   Unit1 Chapter 1 Getting Started With Python
11 Unit1 Chapter 1 Getting Started With PythonPraveen M Jigajinni
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on pythonShubham Yadav
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()Blue Elephant Consulting
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language ProcessingPeter Molnar
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialQA TrainingHub
 
Toward a gui remote-sensing environment built over OTB
Toward a gui remote-sensing environment built over OTBToward a gui remote-sensing environment built over OTB
Toward a gui remote-sensing environment built over OTBmelaneum
 
What is Python? | Edureka
What is Python? | EdurekaWhat is Python? | Edureka
What is Python? | EdurekaEdureka!
 
Python 101 for the .NET Developer
Python 101 for the .NET DeveloperPython 101 for the .NET Developer
Python 101 for the .NET DeveloperSarah Dutkiewicz
 
A Sneak Peek of MLIR in TensorFlow
A Sneak Peek of MLIR in TensorFlowA Sneak Peek of MLIR in TensorFlow
A Sneak Peek of MLIR in TensorFlowKoan-Sin Tan
 
Introduction about Python by JanBask Training
Introduction about Python by JanBask TrainingIntroduction about Python by JanBask Training
Introduction about Python by JanBask TrainingJanBask Training
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 

Mais procurados (20)

Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
 
Python presentation
Python presentationPython presentation
Python presentation
 
IPython: A Modern Vision of Interactive Computing (PyData SV 2013)
IPython: A Modern Vision of Interactive Computing (PyData SV 2013)IPython: A Modern Vision of Interactive Computing (PyData SV 2013)
IPython: A Modern Vision of Interactive Computing (PyData SV 2013)
 
11 Unit1 Chapter 1 Getting Started With Python
11   Unit1 Chapter 1 Getting Started With Python11   Unit1 Chapter 1 Getting Started With Python
11 Unit1 Chapter 1 Getting Started With Python
 
Python for All
Python for All Python for All
Python for All
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
 
Getting Started with Python
Getting Started with PythonGetting Started with Python
Getting Started with Python
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
Toward a gui remote-sensing environment built over OTB
Toward a gui remote-sensing environment built over OTBToward a gui remote-sensing environment built over OTB
Toward a gui remote-sensing environment built over OTB
 
What is Python? | Edureka
What is Python? | EdurekaWhat is Python? | Edureka
What is Python? | Edureka
 
Python 101 for the .NET Developer
Python 101 for the .NET DeveloperPython 101 for the .NET Developer
Python 101 for the .NET Developer
 
A Sneak Peek of MLIR in TensorFlow
A Sneak Peek of MLIR in TensorFlowA Sneak Peek of MLIR in TensorFlow
A Sneak Peek of MLIR in TensorFlow
 
Obj report
Obj reportObj report
Obj report
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Introduction about Python by JanBask Training
Introduction about Python by JanBask TrainingIntroduction about Python by JanBask Training
Introduction about Python by JanBask Training
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 

Semelhante a Introduction to Jupyter notebook and MS Azure Machine Learning Studio

Python workshop
Python workshopPython workshop
Python workshopShiraz LUG
 
Introduction to python history and platforms
Introduction to python history and platformsIntroduction to python history and platforms
Introduction to python history and platformsKirti Verma
 
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptxnagendrasai12
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming BasicsDhana malar
 
Software Programming with Python II.pptx
Software Programming with Python II.pptxSoftware Programming with Python II.pptx
Software Programming with Python II.pptxGevitaChinnaiah
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python ProgrammingAkhil Kaushik
 
Exploring Five Lesser-Known Python Libraries
Exploring Five Lesser-Known Python LibrariesExploring Five Lesser-Known Python Libraries
Exploring Five Lesser-Known Python LibrariesMinhazulAbedin27
 
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningApresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningArthur Emanuel
 
Python_basics_tuples_sets_lists_control_loops.ppt
Python_basics_tuples_sets_lists_control_loops.pptPython_basics_tuples_sets_lists_control_loops.ppt
Python_basics_tuples_sets_lists_control_loops.pptVGaneshKarthikeyan
 
DEMO On PYTHON WEB Development.pptx
DEMO On PYTHON WEB Development.pptxDEMO On PYTHON WEB Development.pptx
DEMO On PYTHON WEB Development.pptxSHAIKIRFAN715544
 
Programming for data science in python
Programming for data science in pythonProgramming for data science in python
Programming for data science in pythonUmmeSalmaM1
 
PYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONALPYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONALauramarketings
 
PYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONALPYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONALauramarketings
 
Python programming language introduction unit
Python programming language introduction unitPython programming language introduction unit
Python programming language introduction unitmichaelaaron25322
 

Semelhante a Introduction to Jupyter notebook and MS Azure Machine Learning Studio (20)

Python workshop
Python workshopPython workshop
Python workshop
 
Python workshop
Python workshopPython workshop
Python workshop
 
What is python
What is pythonWhat is python
What is python
 
PYTHON UNIT 1
PYTHON UNIT 1PYTHON UNIT 1
PYTHON UNIT 1
 
Introduction to python history and platforms
Introduction to python history and platformsIntroduction to python history and platforms
Introduction to python history and platforms
 
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
IPT 2.pptx
IPT 2.pptxIPT 2.pptx
IPT 2.pptx
 
Software Programming with Python II.pptx
Software Programming with Python II.pptxSoftware Programming with Python II.pptx
Software Programming with Python II.pptx
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
Exploring Five Lesser-Known Python Libraries
Exploring Five Lesser-Known Python LibrariesExploring Five Lesser-Known Python Libraries
Exploring Five Lesser-Known Python Libraries
 
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningApresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
 
hpcpp.pptx
hpcpp.pptxhpcpp.pptx
hpcpp.pptx
 
Python_basics_tuples_sets_lists_control_loops.ppt
Python_basics_tuples_sets_lists_control_loops.pptPython_basics_tuples_sets_lists_control_loops.ppt
Python_basics_tuples_sets_lists_control_loops.ppt
 
Top 10 python ide
Top 10 python ideTop 10 python ide
Top 10 python ide
 
DEMO On PYTHON WEB Development.pptx
DEMO On PYTHON WEB Development.pptxDEMO On PYTHON WEB Development.pptx
DEMO On PYTHON WEB Development.pptx
 
Programming for data science in python
Programming for data science in pythonProgramming for data science in python
Programming for data science in python
 
PYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONALPYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONAL
 
PYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONALPYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONAL
 
Python programming language introduction unit
Python programming language introduction unitPython programming language introduction unit
Python programming language introduction unit
 

Último

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 

Último (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 

Introduction to Jupyter notebook and MS Azure Machine Learning Studio

  • 1. Introduction about Jupyter Notebook and Azure Machine Learning Studio Muralidharan Deenathayalan, Technical Architect, Quanticate 1
  • 2. What is Python? • Python is an interpreted language. • Python is an object-oriented, high-level programming language for general-purpose programming • Created by Guido van Rossum and first released in 1991 2
  • 3. Advantages of Python • Extensive Support Libraries • Integration Feature • Improved Programmer’s Productivity Ref : https://medium.com/@mindfiresolutions.usa/advantages-and-disadvantages-of-python-programming-language-fd0b394f2121 3
  • 4. What is R ? • R is a language and environment for statistical computing and graphics. • It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. • R can be considered as a different implementation of S Ref : https://www.r-project.org/about.html 4
  • 5. Advantages of R • An effective data handling and storage facility. • Suite of operators for calculations on arrays, in particular matrices. • A large, coherent, integrated collection of intermediate tools for data analysis. • Graphical facilities for data analysis and display either on-screen or on hardcopy. • A well-developed, simple and effective programming language which includes conditionals, loops, user- defined recursive functions and input and output facilities Ref : https://www.r-project.org/about.html 5
  • 6. What is Julia? • Julia is a high-level, high-performance dynamic programming language for numerical computing. • Julia provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an extensive mathematical function library. • Julia’s Base library, largely written in Julia itself. • It integrates mature, best-of-breed open source C and Fortran libraries for linear algebra, random number generation, signal processing, and string processing. Ref :https://julialang.org/ 6
  • 7. Advantages of Julia • Multiple dispatch: providing the ability to define function behaviour across many combinations of argument types. • Good performance, approaching that of statically-compiled languages like C • Built-in package manager • Call Python functions: use the PyCall package • Call C functions directly: no wrappers or special APIs Ref :https://julialang.org/ 7
  • 8. Limitations of Julia • Not fully stabilized • Lesser scientific tools • Slower Ref : https://www.allerin.com/blog/big-data-python-r-or-julia 8
  • 9. What is iPython? • iPython – Interactive Python command shell. • It provides a rich toolkit to help you make the most of using Python interactively. • Its main components are: • A powerful interactive Python shell • A Jupyter kernel to work with Python code in Jupyter notebooks and other interactive frontends. Ref : https://ipython.readthedocs.io/en/stable/ 9
  • 10. Advantages of iPython • Comprehensive object introspection. • Input history, persistent across sessions. • Caching of output results during a session with automatically generated references. • Extensible tab completion, with support by default for completion of python variables and keywords, filenames and function keywords. • Extensible system of ‘magic’ commands for controlling the environment and performing many tasks related to iPython or the operating system. Ref : https://ipython.readthedocs.io/en/stable/ 10
  • 11. Limitations of iPython • No native code session save. • Unnatural keyboard shortcuts and no syntax debugger. • Code cell allows lines that are too long and has no wrapping / autoindent. • No easy drag and rearrange code cells. • No table of content to show where html headers are. • No easy hiding of code cells / code output. Ref : https://www.quora.com/What-are-the-limitations-of-IPython-Notebook 11
  • 12. What is Jupyter? • Ju(lia) + Py(thon) + (e)R • The Jupyter Notebook is an open-source web application that allows you to create and share documents. • This document contain live code, equations, visualizations and narrative text. Ref : https://www.oreilly.com/ideas/what-is-jupyter 12
  • 13. Advantages of Jupyter? • Useful for data cleaning and transformation, numerical simulation, statistical modelling, data visualization, machine learning, and much more. • Language of choice  40+ Languages • Notebooks can be shared with others using email, Dropbox, GitHub and the Jupyter Notebook Viewer. • Your code can produce rich, interactive output: HTML, images, videos, and custom MIME types. • Big data integration - Leverage big data tools, such as Apache Spark, from Python, R and Scala. Explore that same data with pandas, scikit-learn, ggplot2, TensorFlow. Ref : http://jupyter.org/ 13
  • 14. Limitations of Jupyter • It messes with your version control. • The Jupyter Notebook format is just a big JSON, which contains your code and the outputs of the code • Code can only be run in chunks. Ref : http://opiateforthemass.es/articles/why-i-dont-like-jupyter-fka-ipython-notebook/ 14
  • 15. History of Jupyter & iPython • Initial release : 2001; 17 years ago • In 2014, Fernando Pérez announced a spin-off project from IPython called Project Jupyter. • In 2015, GitHub and the Jupyter Project announced native rendering of Jupyter notebooks file format (.ipynb files) on the GitHub platform. Ref : https://en.wikipedia.org/wiki/IPython , https://en.wikipedia.org/wiki/Project_Jupyter#History 15
  • 16. How Jupyter works? Ref : https://en.wikipedia.org/wiki/IPython , https://en.wikipedia.org/wiki/Project_Jupyter#History 16
  • 17. What is kernel in Jupyter? • A notebook kernel is a “Computational Engine” that executes the code contained in a Notebook document. Ref : http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is_jupyter.html 17
  • 18. List of available Jupyter kernels • There are 100+ kernels available (as of 22/11/2018) • Interesting kernels are, • IPyKernel • IRKernel • sas_kernel • Ijava • ICSharp Ref : https://github.com/jupyter/jupyter/wiki/Jupyter-kernels 18
  • 19. Installation of Jupyter Notebook • http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/install.html 19
  • 20. Jupyter Notebook on Cloud • Navigate to https://notebooks.azure.com/ • Click Samples to navigate to https://notebooks.azure.com/Microsoft/libraries/samples • Click anyone of the sample • Click Clone option (You may get login dialog (if you’re not signed in, use your Hotmail/outlook/skype) and login.) • Enter library name and click Clone button • Click on “Introduction to Python” sample and it launches, Jupyter notebook on Azure • Select the statements on starts with In[1] … and select click Run button in the toolbar. 20
  • 21. Sample Jupyter Notebook • A simple python code sample from Jupyter Notebook. 21
  • 22. Sample Jupyter Notebook • Fetching data from Azure Machine Learning Studio to Jupyter Notebook. 22
  • 23. What is Machine Learning(ML)? • Machine Learning is about using the data you already have to make predictions. • Machine Learning methods Supervised machine learning algorithms  Logistic Regression.  Linear regression.  Support vector machine (SVM) Unsupervised machine learning algorithms  K – means clustering  Hierarchical clustering  Hidden Markov models Semi-supervised machine learning algorithms Reinforcement machine learning algorithms Ref : https://news.codecademy.com/what-is-machine-learning/, https://www.expertsystem.com/machine-learning-definition/ , http://dataaspirant.com/2014/09/19/supervised-and- unsupervised-learning/ 23
  • 24. Microsoft Azure Machine Learning Studio • Navigate to https://studio.azureml.net/ (Sign- in, if not.) 24
  • 26. Python and Azure ML import pandas as pd def azureml_main(dataframe1): for index, row in dataframe1.iterrows(): row[0]="Hello " + row[0] +"!" # Return value must be of a sequence of pandas.DataFrame return dataframe1 26
  • 28. Python and Azure ML Demo Demo 28
  • 29. R and Azure ML 29
  • 30. R and Azure ML dataset1 <- maml.mapInputPort(1)#class: data.frame data.set <- data.frame(response=paste0("Hello ",dataset1$Names,"!")) maml.mapOutputPort("data.set"); 30
  • 31. R and Azure ML 31
  • 32. R and Azure ML Demo Demo 32
  • 33. Python, R and Azure ML 33
  • 34. Q & A Q & A 34
  • 35. Keep in touch Muralidharan Deenathayalan Blogs : www.codingfreaks.net Twitter : https://twitter.com/muralidharand GitHub : https://github.com/muralidharand LinkedIn : https://www.linkedin.com/in/muralidharand 35