Download presentation
Presentation is loading. Please wait.
Published byAdela Bond Modified over 9 years ago
1
Data Warehousing Lecture-31 Supervised vs. Unsupervised Learning Virtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for Agro-Informatics Research www.nu.edu.pk/cairindex.asp National University of Computers & Emerging Sciences, Islamabad Email: ahsan101@yahoo.com
2
Data Structures in Data Mining Data matrix –Table or database –n records and m attributes, –n >> m C 1,1 C 1,2 C 1,3 C 1,m C 2,1 C 2,2 C 2,3 C 2,m C 3,1 C 3,2 C 3,3 C 3,m C n,1 C n,2 C n,3 C n,m …...... …...... 1S 1,2 S 1,3 S 1,n S 2,1 1S 2,3 S 2,n S 3,1 S 3,2 1S 3,n S n,1 S n,2 S n,3 1 …...... …...... Similarity matrix –Symmetric square matrix –n x n or m x m
3
Main types of DATA MINING Supervised Bayesian Modeling Decision Trees Neural Networks Etc. Unsupervised One-way Clustering Two-way Clustering Type and number of classes are NOT known in advance Type and number of classes are known in advance
4
Clustering: Min-Max Distance Age Salary 204060 outlier Inter-cluster distances are maximized Intra-cluster distances are minimized
5
How Clustering works?
6
One-way clustering example INPUT OUTPUT Black spots are noise White spots are missing data
7
Data Mining Agriculture data INPUT Clustered OUTPUT clusters
8
Which class? Classifier (model) Unseen Data Classification
9
Output Confidence Level Inputs How Classification work?
10
Classification Process (1): Model ConstructionTrainingData ClassificationAlgorithms IF time/items >= 6 THEN gender = ‘F’ Classifier(Model) (observations, measurements, etc.) Relationship between shopping time and items bought
11
Classification Process (2): Use the Model in PredictionTestingData Unseen Data (Firdous, Time= 15 Items = 1) Classifier Gender?
12
Clustering vs. Cluster Detection
13
Clustering vs. Cluster Detection ExampleA B
14
The K-Means Clustering
15
The K-Means Clustering: Example 0 1 2 3 4 5 6 7 8 9 10 0123456789 0 1 2 3 4 5 6 7 8 9 0123456789 0 1 2 3 4 5 6 7 8 9 0123456789 0 1 2 3 4 5 6 7 8 9 0123456789 A B D C
16
The K-Means Clustering: Comment
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.