AI and ML Notes
AI and ML Notes
https://drive.google.com/drive/folders/1QHfZt7_M0X4uNHv-
0akJJdct7JABsSgw
Greedy search
A* search
Hill climb
Simulated annealing
Genetic algorithm
Classification
Regression
Clustering
Association
Additional topics
Visualisation
Reinforcement learning
AI and ML 1
Part of speech
Text search
Word cloud
Sentiment analysis
Face detection
Face recognition
Object tracking
Image generation
AI Terminology
Search algorithm - For example , if you wanna go to one point to another using
google maps , this algorithm will trace the best route for you
Optimization algorithm - For example , an e commerce company that needs to
load products on a truck so this algorithm can optimize space used in the truck
in order to load only the most profitable products
Case base reasoning - For example , it uses past cases or past situations that
has happened to help make a decision. For example in juridical cases as judge
can consult old cases to make a decision
AI and ML 2
Data Science - Uses ML techniques to provide insights to companies
AI and ML 3
Simulated Annealing
Inspired by Physics
Atoms tend to move around a lot at first and gradually enter low energy
states
Genetic Algorithm
Create initial population ( Individual, Chromosome, Gene )
Stopping criterion ( when should it stop ( one time or thousand times , etc)
and Select parents. Then use Genetic operator. Use cross over between
two parents. Apply mutation and then change a specific gene of the
solution. Then we do final evaluation of population and define surviving
population.
AI and ML 4
Fuzzy Logic
Intuition
Homework
Rules :
High cost and high benefit can be “half true” or “half false”
If cost-high < 0.2 and benefit-high >0.8 then cost-benefit HIGH
MACHINE LEARNING
Classification (Naive bayes, decision trees, rules, instances, SVM, logistic
regression)
Clustering (k-means)
AI and ML 5
Pre-processing, feature selection, PCA, outliers and time series
Data exploration
Reinforcement learning
Classification
Classification is a machine learning technique where an algorithm learns to
categorize input data into predefined classes or categories based on its
features. It is used for tasks like spam detection, sentiment analysis, and image
recognition.
Naive Bayes
AI and ML 6
Naive Bayes is a probabilistic machine learning algorithm used for classification
tasks. It's based on Bayes' theorem and assumes independence between
features, making it "naive" but often effective for text classification and spam
filtering.
Decision Tree
A Decision Tree is a machine learning algorithm used for classification and
regression tasks. It works by creating a tree-like model of decisions based on
features in the data, where each internal node represents a decision rule, each
branch represents an outcome of that rule, and each leaf node represents a
final classification or prediction.
AI and ML 7
Rule Based Learning
Rule Based Learning is a machine learning approach where the system uses
predefined rules to make decisions or classifications. These rules are typically
created by domain experts and are applied to input data to generate outputs or
predictions.
AI and ML 8
kNN (k-Nearest Neighbors) is an instance-based machine learning algorithm
used for classification and regression tasks. It works by finding the k closest
data points to a given input and making predictions based on the majority class
or average value of those neighbors.
AI and ML 9
hyperplane that best separates different classes in a high-dimensional space,
making them effective for both linear and non-linear classification problems.
Logistic Regression
Logistic Regression is a statistical method used for binary classification in
machine learning. It models the probability of an input belonging to a particular
category, making it effective for predicting outcomes with two possible classes.
AI and ML 10
Results in Orange using all above algorithms
Regression
Regression is a type of machine learning technique used to predict a
continuous output variable based on input features. It involves identifying the
relationships between dependent and independent variables, often using linear
regression methods.
AI and ML 11
Linear Regression
Linear Regression is a statistical method used in machine learning to model the
relationship between a dependent variable and one or more independent
variables, predicting a continuous outcome by fitting a linear equation to the
observed data.
Clustering
Clustering is a machine learning technique used to group a set of objects in
such a way that objects in the same group, or cluster, are more similar to each
other than to those in other groups. It is often used for exploratory data analysis
and pattern recognition.
AI and ML 12
Clustering with K-MEANS
Clustering with K-MEANS is a machine learning technique used to partition a
dataset into distinct groups, or clusters, where each data point belongs to the
cluster with the nearest mean. It is commonly used for exploratory data
analysis and pattern recognition.
Association Rules
Association Rules is a machine learning technique used to discover interesting
relationships or patterns in large datasets. It identifies frequent itemsets and
generates rules that express the likelihood of items occurring together, often
used in market basket analysis and recommendation systems.
AI and ML 13
Apriori Algorithm
The Apriori Algorithm is a data mining technique used for discovering frequent
itemsets and generating association rules in large datasets. It is commonly
applied in market basket analysis to identify relationships between products
frequently purchased together.
AI and ML 14
REINFORCEMENT LEARNING
Reinforcement Learning is a machine learning technique where an agent learns
to make decisions by interacting with an environment, receiving feedback in the
form of rewards or penalties, and adjusting its behavior to maximize cumulative
rewards over time.
Intuition
Intuition, in the context of machine learning and artificial intelligence, refers to
the innate understanding or quick perception of concepts without conscious
AI and ML 15
reasoning. It's often used to describe the initial grasp of an idea or approach
before formal analysis or implementation.
AI and ML 16
AI and ML 17