0% found this document useful (0 votes)
15 views14 pages

ML Lecture 5

Uploaded by

azhar34658
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views14 pages

ML Lecture 5

Uploaded by

azhar34658
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

CS – Machine Learning

Overview

◉ Setting up environment for Machine Learning


◉ Installing Anaconda
◉ Jupyter Notebook
◉ Spyter
◉ Creating Virtual Environments

2
Setting up environment for Machine
Learning

3
Installing Anaconda

Tools required for machine learning.


1. Download anaconda. (https://www.anaconda.com/download)

4
1. Spyder

Spyder (Scientific Python Development Environment) is an open-


source integrated development environment (IDE) that comes pre-
installed with the Anaconda distribution. It is specifically designed
for Python and is widely used for scientific computing, data analysis,
and machine learning.

5
1. Spyder

6
2. Jupyter

Jupyter Notebook is an open-source web application included in the


Anaconda distribution that allows you to create and share documents
containing live code, equations, visualizations, and narrative text. It is
widely used for data science, machine learning, academic research,
and exploratory programming.

7
2. Jupyter

8
3. Google Collab
 Google Colab (Colaboratory) is a free cloud-based platform by
Google that allows users to write and execute Python code through
their web browser. It's especially popular for data science, machine
learning, and deep learning projects.
 Visit the following url:
 https://colab.google/

9
Advantages of Google Collab
Free Access to GPUs/TPUs: Colab offers access to powerful hardware
like GPUs and TPUs, which can speed up the computation, especially
for AI and ML tasks.
Pre-installed Libraries: It comes pre-loaded with several popular
Python libraries, such as TensorFlow, PyTorch, NumPy, pandas, and
Matplotlib, making it easy to start coding without the need for
installation.
Jupyter Notebook Environment: Google Colab operates like a Jupyter
notebook, a popular tool for interactive code development. You can
write code, add text, create plots, and display results in an organized,
interactive manner.

10
4. Virtual Environment

A virtual environment in Python is an isolated environment that


allows you to manage dependencies (libraries, packages, etc.) for a
specific project, separate from the system-wide Python installation or
other projects. This helps avoid version conflicts and ensures that each
project has its own set of libraries and versions.

11
Creating Virtual Environment
Open anaconda prompt and run the following command.

To activate your environment, run the following command.


• conda activate machinelearning

To deactivate your environment, run the following command.


• conda deactivate

Now, let’s install jupyter notebook in machinelearning environment


• conda install anaconda::jupyter
After successful installation, type the following command to open jupyter notebook from
cmd (anaconda prompt)
• jupyter notebook
Now if you want to install a library e.g. numpy, type the following command.
• conda install numpy 12
Creating Virtual Environment
To delete the environment, type the following command.
• conda remove –name machinelearning --all

13
Thank You

14

You might also like