Vari algoritmi per il clustering di dati, tra cui seed choice per la selezione di buoni semi, buckshot algorithm per la combinazione di hac e k-means, text clustering per il clustering di testo, soft clustering per il clustering moroso e em per il learning da dati etichettati probabilisticamente. Le caratteristiche e le applicazioni di ognuno di questi algoritmi.
Scarica Algoritmi per il Clustering di Dati: Seed, Buckshot, Text, Soft e EM e più Dispense in PDF di Sistemi Elettronici A Basso Consumo solo su Docsity!
Seed Choice
Results can vary based on random seedselection.
Some seeds can result in poor convergence rate, or convergence to sub
optimal
rate, or convergence to sub
optimal
clusterings.
Select good seeds using a heuristic or theresults of another method.
Buckshot Algorithm
Combines HAC and K-Means clustering.
First randomly take a sample of instances ofsize
n
Run group-average HAC on this sample, which takes only O(
n
) time.
which takes only O(
n
) time.
Use the results of HAC as initial seeds forK-means.
Overall algorithm is O(
n
) and avoids
problems of bad seed selection.
Soft Clustering
Clustering typically assumes that each instance isgiven a “hard” assignment to exactly one cluster.
Does not allow uncertainty in class membership orfor an instance to belong to more than one cluster.
Soft clustering
gives probabilities that an instance
Soft clustering
gives probabilities that an instance
belongs to each of a set of clusters.
Each instance is assigned a probability distributionacross a set of discovered categories (probabilitiesof all categories must sum to 1).
Expectation Maximumization (EM)
Probabilistic method for soft clustering.
Direct method that assumes
k
clusters:
c
c
c
k
Soft version of
k
-means.
Assumes a probabilistic model of categories that allows computing P(
c
E
for each category,
c
, for a
allows computing P(
c
i
E
for each category,
c
i
, for a
given example,
E
For text, typically assume a naïve-Bayes categorymodel.
Parameters
= {P(
c
i
), P(
w
j
c
i
i
k
j
V
EM
Unlabeled Examples
Assign random probabilistic labels to unlabeled data
Initialize:
EM
Prob.
Learner
Give soft-labeled training data to a probabilistic learner
Initialize:
Learner
EM
Prob.
Learner
Prob.
Classifier
Relabel unlabled data using the trained classifier
E Step:
Learner
Classifier
EM
Prob.
Learner
Prob.
Classifier
Retrain classifier on relabeled data
M step:
Learner
Classifier
Continue EM iterations until probabilistic labels
on unlabeled data converge.
Naïve Bayes EM
Randomly assign examples probabilistic category labels.Use standard naïve-Bayes training to learn a probabilistic model
with parameters
from the labeled data.
Until convergence or until maximum number of iterations reached:
Until convergence or until maximum number of iterations reached:
E-Step
: Use the naïve Bayes model
to compute P(
c
i
E
) for
each category and example, and re-label each exampleusing these probability values as soft category labels.
M-Step
: Use standard naïve-Bayes training to re-estimate the
parameters
using these new probabilistic category labels.
Semi-Supervised Learning
For supervised categorization, generating labeledtraining data is expensive.
Idea
: Use unlabeled data to aid supervised
categorization.
Use EM in a
semi
supervised
mode by training
Use EM in a
semi
supervised
mode by training
EM on both labeled and unlabeled data.
Train initial probabilistic model on user-labeled subsetof data instead of randomly labeled unsupervised data.
Labels of user-labeled examples are “frozen” and neverrelabeled during EM iterations.
Labels of unsupervised data are constantlyprobabilistically relabeled by EM.
Semi-Supervised EM
Training Examples
Prob.
Learner
Prob.
Classifier
Learner
Classifier
Semi-Supervised EM
Training Examples
Prob.
Learner
Prob.
Classifier
Learner
Classifier
Semi-Supervised EM
Training Examples
Prob.
Learner
Prob.
Classifier
Learner
Classifier
Continue retraining iterations until probabilistic
labels on unlabeled data converge.
Semi-Supervised EM Results
Experiments on assigning messages from 20 Usenetnewsgroups their proper newsgroup label.
With very few labeled examples (2 examples per class),semi-supervised EM significantly improved predictiveaccuracy:
27% with 40 labeled messages only.
27% with 40 labeled messages only.
43% with 40 labeled + 10,000 unlabeled messages.
With more labeled examples, semi-supervision canactually decrease accuracy, but refinements to standardEM can help prevent this.
Must weight labeled data appropriately more than unlabeled data.
For semi-supervised EM to work, the “natural clustering ofdata” must be consistent with the desired categories
Failed when applied to English POS tagging (Merialdo, 1994)