.
ARTIFICIAL INTELLIGENCE & MACHINE LEARNING
PRACTICAL TRAINING REPORT
Submitted for the Partial Fulfillment of the Requirement of the
Degree
of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE & ENGINEERING
Submitted to: Submitted By:
Prof. Pratik Bhansali Mr. Shourabh Mathur
Training In charge (III B. Tech., V Sem.)
Department of Electrical Engineering and Engineering
Jodhpur Institute of Engineering & Technology,
JIET Group of Institutions, Jodhpur.
Bikaner Technical University, Bikaner (Raj.)
2020-21
SELF CERTIFICATION
Mr. Shourabh Mathur hereby undertake that, I have completed 50 days
summer training at CIPHERSCHOOLS from 11th May 2020 to 30th June
2020.The record of practical training is prepared by me and submitted for the
partial fulfillment of the Requirement of the degree Bachelor of
Technology in Electrical Engineering at at Jodhpur Institute of Engineering
& Technology, Jodhpur; is a record of the practical training report
undertaken by him. The matter embodied in this practical training report has
not been submitted earlier for the award of any other degree .
Shourabh Mathur Countersigned:
Date : (Dr. Kusum Agarwal)
Place: Jodhpur (HEAD-EE)
COMPANY CERTIFICATE
ACKNOWLEDGEMENT
I wish to express deep sense of gratitude to my guide Mr. Kanav Bansal
for his valuable guidance, constant support, and encouragement throughout
the report formation. His attitude of generating innovative solutions to
problems and making thoughts into reality through hard work are a source of
inspiration for me. His approachable nature creates a comfortable working
environment. It has been a great experience learning from him.
I would also like to pay my sincere gratitude to Dr.Kusum Agarwal, Head
of the Department of Computer Science & Engineering for providing all
facilities necessary for the report formation, for all her support and
motivation extended.
It is an honor to work in a cooperative environment, where one can work
with zeal and enthusiasm for which I am thankful to Mr. Kanav Bansal and
Mr. Ashutosh Mahawar . They have provided me all the support needed
throughout the experimental work for the successful completion of the
project.
I would also like to express my special thanks to few of my batchmates for
their continued support during the report formation.
Mr. Sourabh Mathur
Roll No. 18EJIEE043
(III B. Tech., V Sem.)
ABSTRACT
The application of “Machine Learning” and “Artificial Intelligence” has
become Popular within the last decade. Both terms are frequently used in
science and media, sometimes interchangeably, sometimes with different
meanings.
In this work, The project report entitled to "MACHINE LEARNING &
ARTIFICIAL INTELLIGENCE”. We review relevant literature and present
a conceptual framework which clarifies the role of machine learning and
artificial intelligence. Machine learning has been used in multiple fields and
industries. For example in this report we will show how we can apply ML in
Prediction , classification, learning association , Regression and performing
EDA etc.
In this project we were asked to experiment with a real world dataset and to
Explore how machine learning algorithms can be used to find the patterns in
data.
CONTENTS
1. Basic Introduction to Python
Features and Applications of Python
Identifiers and Operators in Python
Data Types
2. Mathematics
Linear Algebra
Statistics
Probability
3. Mathematical Libraries in Python
Numpy
Pandas
4. Exploratory Data Analysis
Pyplot in Matplotlib
Seaborn
Express in Plotly
5. Basic Algorithms in Machine Learning
a) Regression :
Linear Regression
b) Classification :
K-NN
Logistic Regression
Decision Trees
Support Vector Machines
6. Deployment
CHAPTER-1
Basic Introduction to Python
Python is a widely used general-purpose, high level programming language.
It’s an Open source programming language. It is available and can run on
various operating systems such as Mac, windows , linux ,unix etc. This
makes it a cross platform and portable language.
Features of Python :
1. Simple and easy to learn
2. Free and open source.
3. General Purpose and high level programming language.
4. Platform independent.
5. Case Sensitive.
6. Interpreted Language.
7. Dynamically typed.
8. Rich Library.
9. We can write concise code using python.
Applications :
1. Desktop Applications (Calculator, Notepad, etc..)
2. Web Applications (YouTube, Dropbox, Google, Instagram, Quora, Spotify)
3. Scientific and Numeric Computing (Scipy, Numpy)
4. Database Applications (Library Management Systems, Pharmaceutical)
5. Network Applications
6. Developing Games (Battlefield, Sims 4, PUBG)
7. Data Science (Pandas, Matplotlib, Seaborn, etc)
8. Machine Learning
9. AI
10. IOT
Identifiers :
Rules to define identifiers :
1. Allowed characters → Alphabets, Digits and Underscore Symbol
2. Identifier should never start with a digit
3. Case Sensitive.
4. No length limit.
5. Can't use reserved words for identifier.
Displaying list of Keywords :
import keyword
print(keyword.kwlist);
Output :['False', 'None', 'True', 'and', 'as', 'assert', 'async',
'await', 'break', 'class', 'continue', 'def', 'del', 'elif',
'else', 'except', 'finally', 'for', 'from', 'global', 'if',
'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass',
'raise', 'return', 'try', 'while', 'with', 'yield']
Operators :
Operator is a symbol that perform certain operation.
Operators available in python are:
Arithmatic (+, -, , /, %, //, **)
Relational (>, >=, <, <=)
Equality (==, !=)
Logical (and, or, not)
Bitwise (&, |, ^, ~, <<, >>)
Assignment (=, +=, -=, *=, /=, etc..)
Ternary
Identity --> is, is not (used for address comparision)
Membership --> in, not in
Data Types :
Numeric - int, float, complex (Immutable)
Boolean - bool (True/False)
Strings (Immutable)
List (Mutable, mostly used to store homogeneous data types)
Tuple (Immutable, faster compared to List)
Set (Unordered collection of items, mutable, removes duplicates)
Dictionary (Unordered collection of Key-Value Pairs, Mutable, Keys are
Unique - values may not be unique)
Comments :
# This is a single line comment
'''
this is a
multiline comment - 1
'''
"""
this is a
multiline comment - 2
"""
Here are some problem statements:
Q.1: Write a program to get a user input in the form of a list data type.
Return a list by removing all the duplicates.
a =[]
num = int(input(" enter the total number of elements in list :"))
for x in range (0,num):
a.append(int(input("enter the element " +
str(x+1) +":")))
b=set()
non_duplicate = []
for x in a:
if x not in b:
non_duplicate.append(x)
b.add(x)
print("so , non duplicate elements are: ")
print(non_duplicate)
OUTPUT:
enter the total number of elements in list :5
enter the element 1:1
enter the element 2:2
enter the element 3:3
enter the element 4:3
enter the element 5:3
so , non duplicate elements are:
[1, 2, 3]
Q.2: Write a program to create a user defined tuple with 'int' data type
and perform the following operations
Find the length of tuples
find the sum of all the elements of a tuple
Find the Largest and Smallest elements of a tuple
a =[]
bum = int(input(" enter the total number of elements in list :"))
for x in range (0,bum):
a.append(int(input("enter the element " +
str(x+1) +" : ")))
a = tuple(a)
print(type(a))
print("length of tuples : " , len(a))
print("sum of all the elements : " , sum(a))
print("largest element : " ,max(a))
print("smallest element : ", min(a))
OUTPUT
enter the total number of elements in list :2
enter the element 1 : 1
enter the element 2 : 2
<class 'tuple'>
length of tuples : 2
Q.2: Write a program to create a user defined tuple with 'int' data type
and perform the following operations
Find the length of tuples
find the sum of all the elements of a tuple
Find the Largest and Smallest elements of a tuple
a =[]
bum = int(input(" enter the total number of elements in list :"))
for x in range (0,bum):
a.append(int(input("enter the element " +
str(x+1) +" : ")))
a = tuple(a)
print(type(a))
print("length of tuples : " , len(a))
print("sum of all the elements : " , sum(a))
print("largest element : " ,max(a))
print("smallest element : ", min(a))
OUTPUT
sum of all the elements : 3
largest element : 2
smallest element : 1
Margins : 1” on top, bottom & right, 1.25” on left.
Page Nos. : Bottom right corner starting from Chapter 1 to end
Text Font : Time New Roman
Main Body : 12 pts, 1.5 spacing with 0.5” paragraph margin and
one blank line between all paragraphs and between
titles/subtitles and paragraphs
Headings - : Left Justified, 14 Pts, Bold Face, Title Case with Section Nos., Chapter
wise.
Sub Headings-: Left Justified, 12 Pts, Bold Face, and Title Case with Section Nos.
Figure Captions:
Figure – Chapter No. Figure No. – Name of Figure
(Bold Face, Title Case, Centered, 10 Pts. at the bottom of Figures)
Table Captions:
Table – Chapter No. Table No. – Name
(Bold Face, Title Case, Centered, 10 Pts. at the top of Table)
Chapter should include all the assignment; Which
were given by the company during training with the
problem statement.
CHAPTER : DETAILS OF PROJECT (IF ANY GIVEN BY THE
COMPANY )/ TECHNICAL DATA OF COMPANY/TASK ASSIGNED
CHAPTER CONCLUSION REFERENCES