Chapter 3 p4
Chapter 3 p4
•Association:
• An association rule is an unsupervised learning method which is
used for finding the relationships between variables in the large
database.
• It determines the set of items that occurs together in the
dataset.
• Association rule makes marketing strategy more effective.
Such as people who buy X item (suppose a bread) are also
tend to purchase Y (Butter/Jam) item. A typical example of
Association rule is Market Basket Analysis.
Advantages of Unsupervised Learning
Density Models:
• These models search the data space for areas of varied density of data points in
the data space.
• It isolates various different density regions and assign the data points within
these regions in the same cluster.
• Popular examples of density models are DBSCAN and OPTICS.
K-Means Clustering Algorithm
The algorithm takes the unlabeled dataset as input, divides the dataset
into k-number of clusters, and repeats the process until it does not find
the best clusters. The value of k should be predetermined in this
algorithm.
# Structure
str(iris)
Performing K-Means Clustering on Dataset
# Installing Packages
install.packages("ClusterR")
install.packages("cluster")
# Loading package
library(ClusterR)
library(cluster)
# Removing initial label of
# Species from original dataset