Welcome to Middle School Podcasts - Essential Learning Targets and Curricular Outcomes
Dive into the essential learning targets and curricular outcomes for 6th-grade English, 8th-grade English, and 8th-grade Science. Explore how students can share their stories, reflect on their experiences, and engage effectively in collaborative discussions while learning about sound waves and materials in science.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
ENG6600: Advanced Machine Learning ENG6600: Advanced Machine Learning ML Tools: Introduction to Python Python Features & Platforms (Part 1) S. Areibi School of Engineering University of Guelph
Introduction to Python Python is a high-level programming language Python is an Object Oriented Programming(OOP) language Practically everything can be treated as an object Strings, as objects, have methods that return the result of a function on the string Open source and community driven Batteries Included A standard distribution includes many modules Source can be compiled or run just-in-time Similar to perl, tcl, ruby https://www.youtube.com/watch?v=_xQNeOTRyig 3
Downloading/Running Python Download Python from https://www.python.org/downloads/ This will create an IDLE Shell and a Python Terminal With the IDLE Shell you can create a new file and write your Python Code. You can then choose Run to execute the program Downloading and Installing Anaconda: Steps: https://www.youtube.com/watch?v=HW29067qVWk 1. Visit Anaconda.com/downloads. ... 2. Visit the Anaconda downloads page. Anaconda.com/downloads 3. Select Windows where the three operating systems are listed. 4. Download. ... 5. Open and run the installer. ... 6. Open the Anaconda Prompt from the Windows start menu. Google Colab: o https://colab.research.google.com/ https://www.youtube.com/watch?v=aN6OVm0mTHo 10
Jupyter Notebooks Notebooks are an excellent way to document an engineering process because they allow you to combine nicely formatted text with code and results. The Jupyter Notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Jupyter Notebooks use a serialized data storage format, JSON, to store the document. They allow you to integrate many different text processing formats, including HTML, Markdown and LaTex (a popular word processor in STEM). Notebooks are integrated into Anaconda. https://www.youtube.com/watch?v=q_BzsPxwLOE&list=PLeo1K3hjS3uuZPwzACannnFSn9qHn8to8 12
Jupyter Notebooks: Resources Jupyter Notebook: An Introduction https://realpython.com/jupyter-notebook-introduction/#creating-a-notebook How to Use Jupyter Notebook in 2020: A Beginner s Tutorial https://www.dataquest.io/blog/jupyter-notebook-tutorial/ Learn Jupyter (Tutorial) https://www.tutorialspoint.com/jupyter/index.htm What is Jupyter Notebook (YouTube) https://www.youtube.com/watch?v=q_BzsPxwLOE&list=PLeo1K3hjS3uuZPwzACannnFSn9qHn8to 8 Introduction to machine learning with Jupyter notebooks: https://developers.redhat.com/articles/2021/05/21/introduction-machine-learning-jupyter- notebooks# Jupyter Notebook Tutorial : The Definitive Guide: https://www.datacamp.com/community/tutorials/tutorial-jupyter-notebook 13
Running on Linux On Unix % python >>> 3+3 6 Python prompts with >>> . To exit Python (not Idle): In Unix, type CONTROL-D In Windows, type CONTROL-Z + <Enter> Evaluate exit() 15
Running on Linux Call python program via the python interpreter % python fact.py Make a python file directly executable by Adding the appropriate path to your python interpreter as the first line of your file #!/usr/bin/python Making the file executable % chmod a+x fact.py Invoking file from Unix command line % fact.py 16
Example `script: fact.py #! /usr/bin/python def fact(x): """Returns the factorial of its argument, assumed to be a posint""" if x == 0: return 1 return x * fact(x - 1) print print N fact(N) print "---------" for n in range(10): print n, fact(n) 17
Jupyter/Colab Notebooks A Jupyter notebook lets you write and execute Python code locally in your web browser. Jupyter notebooks make it very easy to tinker with code and execute it in bits and pieces; for this reason they are widely used in scientific computing. Colab on the other hand is Google s flavor of Jupyter notebooks that is particularly suited for machine learning and data analysis and that runs entirely in the cloud. Colab is basically Jupyter notebook on steroids: it s free, requires no setup, comes preinstalled with many packages, is easy to share with the world, and benefits from free access to hardware accelerators like GPUs and TPUs (with some caveats). https://cs231n.github.io/python-numpy-tutorial/ 19
Summary o Python is a high-level, general-purpose and a very popular programming language that was developed by Guido van Rossum in the early 1990s. o Python is an interpreted language i.e. it s not compiled and the interpreter will check the code line by line. o Python programming language (latest Python 3) is being used in web development, Machine Learning applications, along with all cutting-edge technology in Software Industry. o Python Programming Language is very well suited for Beginners, also for experienced programmers with other programming languages like C++ and Java. 21
Additional Python Resources Python Homepage http://www.python.org/ Dive Into Python http://www.diveintopython.org/ Learning Python, 3rd Edition http://www.oreilly.com/catalog/9780596513986/ Getting Started Writing Geoprocessing Scripts Available on ESRI's support page 23
Misc. Resources: YouTube o Introduction to Python Basics: https://open.ed.ac.uk/5861-2/ https://www.youtube.com/@ProgrammingKnowledge o Python for Beginners: https://www.youtube.com/watch?v=kqtD5dpn9C8 https://www.youtube.com/playlist?list=PLlrxD0HtieHhS8VzuMCfQD4uJ9yne1mE6 https://github.com/microsoft/c9-python-getting-started https://learn.microsoft.com/en-us/training/modules/intro-to-python/ o How to install Anaconda https://www.youtube.com/watch?v=71DMPhmxOS4 o Introduction to Python-1 (Simplilearn) https://www.youtube.com/watch?v=_xQNeOTRyig o CS50P Intro to Programming with Python https://www.youtube.com/watch?v=OvKCESUCWII&list=PLhQjrBD2T3817j24-GogXmWqO5Q5vYy0V o Learn Python Full Course https://www.youtube.com/watch?v=rfscVS0vtbw https://www.youtube.com/watch?v=SKSd61Smjhg 25
Misc. Resources: Documents o Python Basics: https://www.learnpython.org/ https://www.w3schools.com/python/default.asp https://www.geeksforgeeks.org/python-programming-language/?ref=shm https://machinelearningmastery.com/logging-in- python/?utm_source=drip&utm_medium=email&utm_campaign=An+intro+to+decorators+in+Python&utm_c ontent=An+intro+to+decorators+in+Python o Python Numpy: https://cs231n.github.io/python-numpy-tutorial/ 26
Jupyter Notebook o Introduction to Jupyter Notebook: o https://www.youtube.com/watch?v=HW29067qVWk o https://www.youtube.com/watch?v=2WL-XTl2QYI o https://www.youtube.com/watch?v=5pf0_bpNbkw o https://www.youtube.com/watch?v=Ou-7G9VQugg 27