Exp No 1
Exp No 1
EXPERIMENT NO. 1
Name :- Vinay Santosh Kadam.
Class : B.E. COMPUTER SUB : D.L
Roll No : 24
Date of conductance : / /2025 Date of submission : / /2025
************************************************************************************************
AIM: Introduction to Tensor flow and Theano.
TensorFlow:
Features of TensorFlow
● TensorFlow is a Framework which is used to develop machine learning
models.
● TensorFlow is applicable for the large datasets.
TensorFlow is an end-to-end open-source platform for machine learning.
TensorFlow makes it easy for beginners and experts to create machine learning
models. See the sections below to get started. TensorFlow 2 focuses on simplicity
and ease of use, with updates like eager execution, intuitive higher-level APIs, and
flexible model building on any platform.Many guides are written as Jupyter
notebooks and run directly in Google Colab, a hosted notebook environment that
requires no setup.
Install TensorFlow 2
● TensorFlow is tested and supported on the following 64-bit systems:
● Python 3.8–3.11
● Ubuntu 16.04 or later
● Windows 7 or later (with C++ redistributable)
● macOS 10.12.6 (Sierra) or later (no GPU support)
● WSL2 via Windows 10 19044 or higher including GPUs (Experimental)
TensorFlow basics:
This guide provides a quick overview of TensorFlow basics. TensorFlow is an end-
to-end platform for machine learning. It supports the following:
The most important attributes of a tf.Tensor are its shape and dtype:
• Tensor.shape: tells you the size of the tensor along each of its axes.
• Tensor.dtype: tells you the type of all the elements in the tensor.
Theano:
Theano is a Python library that allows us to evaluate mathematical operations
including multi-dimensional arrays so efficiently. It is mostly used in building Deep
Learning Projects. It works a way faster on the Graphics Processing Unit (GPU)
rather than on the CPU.Theano attains high speeds that give tough competition to C
implementations for problems involving large amounts of data. It can take advantage
of GPUs which makes it perform better than C on a CPU by considerable orders of
magnitude under certain circumstances.It knows how to take structures and convert
them into very efficient code that uses Numpyand some native libraries. It is mainly
designed to handle the types of computation required for large neural network
algorithms used in Deep Learning. That is why it is a very popular library in the field
of Deep Learning.
Conclusion:
The interfaces in both frameworks are identical. TensorFlow, on the other hand, is a
lot easier to use because it comes with a lot of monitoring tools. In terms of
functionality and speed, Theano is better, but TensorFlow is best suited for
deployment.