Professional Documents
Culture Documents
INT 354
(Advanced Machine Learning)
Used Libraries :-
Numpy :- NumPy is a library for the Python programming language, adding
support for large, multi-dimensional arrays and matrices, along with a large
collection of high-level mathematical functions to operate on these arrays.
The goal of the SVM algorithm is to create the best line or decision boundary that
can segregate n-dimensional space into classes so that we can easily put the new
data point in the correct category in the future. This best decision boundary is called
a hyperplane.
Perceptron model is also treated as one of the best and simplest types of Artificial
Neural networks. However, it is a supervised learning algorithm of binary classifiers.
Hence, we can consider it as a single-layer neural network with four main
parameters, i.e., input values, weights and Bias, net sum, and an activation function.
Proposed Architecture:-
Decision tree Algorithm:- Decision Tree is a Supervised learning
technique that can be used for both classification and Regression problems, but
mostly it is preferred for solving Classification problems. It is a tree-structured
classifier, where internal nodes represent the features of a dataset, branches
represent the decision rules and each leaf node represents the outcome.
o In a Decision tree, there are two nodes, which are the Decision Node and Leaf
Node. Decision nodes are used to make any decision and have multiple branches,
whereas Leaf nodes are the output of those decisions and do not contain any
further branches.
o The decisions or the test are performed on the basis of features of the given
dataset.
o It is a graphical representation for getting all the possible solutions to a
problem/decision based on given conditions.
o It is called a decision tree because, similar to a tree, it starts with the root node,
which expands on further branches and constructs a tree-like structure.
o In order to build a tree, we use the CART algorithm, which stands for Classification
and Regression Tree algorithm.
o A decision tree simply asks a question, and based on the answer (Yes/No), it further
split the tree into subtrees.
o Below diagram explains the general structure of a decision tree:
LSTM :- Long short-term memory (LSTM) is an artificial recurrent neural
network (RNN) architecture[1] used in the field of deep learning. Unlike
standard feedforward neural networks, LSTM has feedback connections. It can
process not only single data points (such as images), but also entire sequences of
data (such as speech or video). For example, LSTM is applicable to tasks such as
unsegmented, connected handwriting recognition,[2] speech recognition[3][4] and
anomaly detection in network traffic or IDSs (intrusion detection systems).
A common LSTM unit is composed of a cell, an input gate, an output gate and
a forget gate. The cell remembers values over arbitrary time intervals and the
three gates regulate the flow of information into and out of the cell.
References
https://blog.keras.io/a-ten-minute-introduction-to-sequence-to-sequence-
learning-in-keras.html
https://www.kaggle.com/jannesklaas/frenchenglish-bilingual-
pairs?select=fra.txt
https://faroit.com/keras-docs/2.0.8/optimizers/#adam
https://www.analyticsvidhya.com/blog/2020/08/a-simple-introduction-to-
sequence-to-sequence-models/
https://en.wikipedia.org/wiki/Long_short-term_memory