TP 01
TP 01
Learning
Introduction
Objective: Setting Up a Machine Learning Environment
What is Machine Learning?
There are several ways to install Python. Let's take a look at the most
efficient way:
Installing anaconda for windows, macOS & Linux.
You can directly install the desired version of NumPy, and Conda
will replace the current version
>> Anaconda prompt
conda remove numpy (optional
step)
conda install numpy=1.19
This command installs version 1.19 of the NumPy package.
This is useful when:
•You need to ensure compatibility with other packages or projects that
require a specific version of NumPy.
•You want to work with a stable or known version that you've already tested.
Conda channel
Conda channel
Conda, a channel is a location where packages are stored and
from which Conda installs those packages. Each channel can
host various packages, and they can be managed and accessed
when you use Conda commands.
• Community Maintained
• Cross-platform Compatibility
• Better dependency resolution
Here are some popular IDEs that are commonly used for
Python and machine learning development:
• PyCharm
• Jupyter Notebook
• VS Code (Visual Studio Code)
• Spyder
Integrated Development
Environment (IDE)
Spyder IDE built specifically for data science and
scientific computing, included in Anaconda by
default.
•Why Use It:
• Integrated with Anaconda, so it works seamlessly with Conda
environments.
• Great for data science with built-in plotting and variable explorer.
• Ideal for interactive coding and experimenting with machine
>> Anaconda
learning code. prompt
conda install -c conda-forge spyder
spyder
>> Anaconda prompt Install tf gpu package
conda install tensorflow-gpu=2.3
tensorflow=2.3=mkl_py38h1fcfbd6_0
>> Python
tf.config.list_physical_devices('GPU')
Python 3.8
Spyder 5.4.3