Professional Documents
Culture Documents
TECHNOLOGY, HALIYAL.
Internship Seminar on
“PYTHON AND MACHINE LEARNING”
Presented by
- Milagrin Dsouza
WORLDCLOCK TECHNOLOGIES
Why Python???....
Python operators:
1.Arithmetic operators: +, - , * , / ,% ,** ,// .
2.Assignment operator: = ,+= ,-= ,*= ,/= , %=.
3.Comparison operator: > ,>=, <, <=,==.
4.Logical operator: and, or, not.
5.Bitwise operator: & , | , ^.
6.Membership operator: in , not in .
7.Identity operator: is , is not.
DATATYP
ES
IMMUTABLE MUTABLE
DICTI
NUM STRI TUP ONAR SET
LIST
BER NG LE Y S
FILE
TEXT BINARY
FILE OPERATION
REGULAR EXPRESSION
A sequence of symbols and characters expressing a string or pattern to be
searched for within a longer piece of text.
as a dice rolling.
Machine Learning
The concepts of Machine Learning which we learnt during training are as below
Python Modules:
• Numpy is a library for the python programming language, adding support for large,
multidimensional arrays and matrices, along with the high level mathematical
functions to operate on these arrays.
• Pandas is the most popular python library that is used for data manipulation and data
analysis.It offers data structures and operations for manipulating numerical tables .
• Here we imported the matplotlib and used plt as its alias and plotted the
different kind of graphs like bar graphs, pie charts etc representing some
dataset .
• In Supervised learning the algorithm analysis the training data given to it and
produces an inferred function which can be used for mapping new examples.
Our task is to classify a new data point with 'X' into "Blue" class or "Red"
class. The coordinate values of the data point are x=45 and y=50. Suppose the
value of K is 3. The KNN algorithm starts by calculating the distance of point
X from all the points. It then finds the 3 nearest points with least distance to
point X.
This is shown in the fig(b) above. The three nearest points have been
encircled. The final step of the KNN algorithm is to assign new point to the
class to which majority of the three nearest points belong. From the figure
above we can see that the two of the three nearest points belong to the class
"Red" while one belongs to the class "Blue". Therefore,the new data point will
be classified as "Red".
Underfitting refers to a model that can neither model the training data nor
generalize to new data. An underfit machine learning model is not a suitable
model and will be obvious as it will have poor performance on the training
data. An underfitted model results in problematic or erroneous outcomes on
new data, or data that it wasn’t trained on.
THANK YOU…