0% found this document useful (0 votes)
27 views17 pages

Test Project

Uploaded by

ishikabhardwaj64
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)
27 views17 pages

Test Project

Uploaded by

ishikabhardwaj64
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/ 17

University Institute of Engineering

Department of Computer Science & Engineering

Experiment No:

Student Name: KIRANDEEP KAUR UID: 24BCS10682


Branch: COMPUTER SCIENCE & ENGINEERING Section/Group:405-B
Semester:1st Subject Code:
Subject Name:

➔ AIM OF PRACTICAL:
Understanding the Data analysis/Visualization using AIML algorithms and Matplotlib.

➔ TOOL USED:
Google Collab

➔ THEORY:
Matplotlib: Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations
in Python. Matplotlib makes easy things easy and hard things possible.
• Create publication quality plots.
• Make interactive figures that can zoom, pan, update.
• Customize visual style and layout.
• Export to many file formats.
• Embed in JupyterLab and Graphical User Interfaces.
• Use a rich array of third-party packages built on Matplotlib..

➔ Google Colab: It is basically a free notebook environment that runs fully in the cloud. It has
features that help you to edit documents like the same way you work with Google Docs. Colab supports
many popular and high-level machine learning language which can easily loaded into your notebook
University Institute of Engineering
Department of Computer Science & Engineering

1.import matplotlib.pyplot as plt


x=[0,10,30,50]
y=[25,35,65,70]
plt.plot(x,y)
plt.show()

2.import matplotlib.pyplot as plt


x=[0,10,30,50]
y=[25,35,65,70]
plt.title("current vs time_kirandeep_kaur")
plt.ylabel('current')
plt.xlabel('time')
plt.savefig("kirandeep.jpg")
plt.plot(x,y)
plt.show()

3.import matplotlib.pyplot as plt


x=[0,10,30,50]
y=[25,35,65,70]
x1=[12,31,40,65]
y1=[10,20,30,40]
plt.title("current vs time_kirandeep10682")
plt.plot(x1,y1,label="time")
plt.plot(x,y,label="current")
plt.ylabel('current') plt.xlabel('time')
plt.savefig("kirandeep.jpg")
plt.plot(x,y)
plt.legend()
plt.show()
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering

4.import matplotlib.pyplot as plt

x=[0,10,30,50]

y=[25,35,65,70]
University Institute of Engineering
Department of Computer Science & Engineering

x1=[12,31,40,65]

y1=[10,20,30,40]

plt.title("current vs time_kirandeep10682")

plt.plot(x1,y1,label="time", linewidth="4")

plt.plot(x,y,label="current",linewidth="1")

plt.ylabel('current')

plt.xlabel('time')

plt.savefig("kirandeep.jpg")

plt.plot(x,y)

plt.legend()

plt.show()

5.import matplotlib.pyplot as plt

x=[0,10,30,50]

y=[25,35,65,70]

x1=[12,31,40,65] y1=[10,20,30,40]

plt.title("current vs time_kirandeep10682")

plt.bar(x1,y1,label="time", linewidth=4)

plt.bar(x,y,label="current", linewidth=1)

plt.ylabel('current')

plt.xlabel('time')

plt.bar(x,y)

plt.legend()

plt.show()
University Institute of Engineering
Department of Computer Science & Engineering

6.import matplotlib.pyplot as plt

x=[0,10,30,50]

y=[25,35,65,70]

x1=[12,31,40,65]

y1=[10,20,30,40]

plt.title("current vs time_kirandeep10682")

plt.barh(x1,y1,label="time", linewidth=4)

plt.barh(x,y,label="current", linewidth=1)

plt.ylabel('current')

plt.xlabel('time')

plt.barh(x,y)

plt.legend()

plt.show()
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering

1.

7.import matplotlib.pyplot as plt

x=[0,10,30,50]

y=[25,35,65,70]

x1=[12,31,40,65]

y1=[10,20,30,40]
University Institute of Engineering
Department of Computer Science & Engineering

plt.title("current vs time_kirandeep10682")

plt.scatter(x1,y1,label="time", linewidth=4)

plt.scatter(x,y,label="current",linewidth=1)

plt.ylabel('current')

plt.xlabel('time')

plt.scatter(x,y)

plt.legend()

plt.show()

8.import matplotlib.pyplot as plt

x=[0,10,30,50]

y=[25,35,65,70]

x1=[12,31,40,65]

y1=[10,20,30,40]

plt.title("current vs time_kirandeep10682")

plt.scatter(x1,y1,label="time", color="k")

plt.scatter(x,y,label="current", color="b")

plt.ylabel('current')

plt.xlabel('time')

plt.scatter(x,y)

plt.legend()

plt.grid()

plt.show()
University Institute of Engineering
Department of Computer Science & Engineering

9.import matplotlib.pyplot as plt

x=[0,10,30,50]

y=[25,35,65,70]

x1=[12,31,40,65]

y1=[10,20,30,40]

plt.title("current vs time_kirandeep10682")

plt.scatter(x1,y1,label="time", color="k")

plt.scatter(x,y,label="current", color="b")

plt.ylabel('current')

plt.xlabel('time')

plt.scatter(x,y)

plt.legend()

plt.grid()

plt.show()
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering

 RESULT AND SUMMMARY:


This experiment focuses on understanding data analysis and visualization using artificial intelligence (AI) and
machine learning (ML) algorithms alongside the Matplotlib library. The primary objective is to equip
learners with the skills necessary to analyze data using various AI/ML techniques and to effectively visualize
the results.The experiment begins with data preprocessing, which involves cleaning and transforming raw
University Institute of Engineering
Department of Computer Science & Engineering

data into a suitable format for analysis. Next, different AI/ML algorithms, such as regression, classification,
and clustering, are applied to the processed data to uncover patterns, trends, and relationships.Participants
are then guided through the process of using Matplotlib to create detailed and meaningful visualizations,
such as line plots, scatter plots, histograms, and heatmaps. These visualizations help in better
understanding the data and the outcomes of the AI/ML models.

 Additional Creative Inputs (If Any):


Learning outcomes (What I have learnt):

1. Understanding AI/ML Algorithms.

2. Visualization Techniques with Matplotlib.

3. Technical Proficiency in Python.

4. Evaluation and Optimization.

5. Problem-Solving Using Data.

Evaluation Grid:
Sr. Parameters Marks Obtained Maximum Marks
No.
1. Student Performance 12
(Conduct of experiment)
2. Viva Voce 10
3. Submission of Work Sheet (Record) 8

Signature of Faculty (with Date): Total Marks Obtained: 30


University Institute of Engineering
Department of Computer Science & Engineering

You might also like