forked from IPAIopen/NumDL-CourseNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01-NumDNN-Unsupervised.tex
More file actions
664 lines (478 loc) · 17.4 KB
/
01-NumDNN-Unsupervised.tex
File metadata and controls
664 lines (478 loc) · 17.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
\documentclass[12pt,handout]{beamer}
\input{beamerStyle.tex}
\input{abbrv.tex}
\title{Spectral Clustering for Unsupervised Learning}
\subtitle{Numerical Methods for Deep Learning}
\date{}
\begin{document}
\makebeamertitle
%% ------------------------------------------------------------
%% ------------------------------------------------------------
%% ------------------------------------------------------------
\section{Motivation} % (fold)
\label{sec:motivation}
\begin{frame}
\frametitle{Motivation: Data Mining}
Assume we have data
$$\bfY = [\bfy_1, \ldots, \bfy_n]$$.
The data can be
\begin{itemize}
\item Images
\item Text
\item Sound
\item Set of numbers (climate, pressure ...)
\end{itemize}
\bigskip
We can think of (at least) three goals:
\begin{itemize}
\item Cluster the data (unsupervised)
\item Give meaning to each cluster, label it (semisupervised)
\item Find a functional relation between the cluster and its label (supervised)
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Example: Un/Semi/Fully Supervised Learning}
Example: $\bfy \in \R^2$ contains rock conductivity porosity
\begin{center}
\begin{tabular}{ccc}
unsupervised & semi-supervised \\
\includegraphics[width=0.4\textwidth]{unsupervised_data}&
\includegraphics[width=0.4\textwidth]{unsupervised_semi}
\end{tabular}
\end{center}
\begin{itemize}
\item How many types of rocks do we have? {\bf Unsupervised learning}
\item What are their names (Granite, Basalt)? {\bf Semisupervised learning}
\item Given $\sigma, \phi$ can we find a function $f(\sigma,\phi) = {\rm rock\ type}$? {\bf Supervised learning}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Discussion: Un/Semi/Fully Supervised Learning}
\begin{itemize}
\item Supervised learning requires a large labeled data set
\item Gives an "explanation" (a model) between data and label
\item Un/Semisupervised is more modest
\item No model, just label
\item Can be followed by supervised learning
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Learning Objective: Spectral Clustering}
In this module we focus on spectral clustering algorithms for unsupervised and semisupervised learning.
\bigskip
Learning tasks:
\begin{itemize}
\item Given a data set cluster the data into a few groups
\item Assuming that a few data are labeled, label the rest
\end{itemize}
\bigskip
Numerical methods:
\begin{itemize}
\item k-means algorithm (not discussed)
\item spectral clustering (our focus)
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Spectral Clustering: General Idea}
{\bf Idea:}
Given the data set $\bfY = [\bfy_1, \ldots, \bfy_n]$, if $\bfy_i$ is similar to
$\bfy_j$ then they belong to the same class.
\bigskip
Central question: How to measure and use similarity?
\begin{center}
\includegraphics[width=5cm]{unsupervised_data.png}
\end{center}
Literature: \cite{NgEtAl2002,PothenEtAl1990,vonLuxburg2007}
\end{frame}
% section motivation (end)
\section{Similarity Measures} % (fold)
\label{sec:section_name}
\begin{frame}
\frametitle{Similarity Measures: Metrics - 1}
How to quantify the similarity of two data points?
\bigskip
A function $D : \R^{n_f} \times \R^{n_f} \rightarrow [0,\infty)$ is called a \emph{metric}, if for all $\bfx,\bfy,\bfz$ it holds that
\begin{itemize}
\item $D(\bfx,\bfy) \ge 0$
\item $D(\bfx,\bfy) = 0 \quad \Rightarrow \quad \bfx = \bfy$
\item $D(\bfx,\bfy) = D(\bfy,\bfx)$
\item $D(\bfx,\bfz) \le D(\bfx,\bfy) + D(\bfy,\bfz)$
\end{itemize}
\bigskip
A metric can be used to measure similarity.
\bigskip
Note: Not all properties are needed. E.g., sometimes we will drop the second one.
\end{frame}
\begin{frame}
\frametitle{Similarity Measures: Metrics - 2}
Most obvious metric is induced by a norm, e.g.,
$$ D(\bfx,\bfy) = \|\bfx - \bfy\|_p = \left( \sum_{i=1}^{n_f} |\bfx_i-\bfy_i|^p \right)^{\frac 1p} $$
\begin{itemize}
\item most used is the $2$-norm (why?)
\item $p=\infty$ is called the max norm (why?)
\end{itemize}
\bigskip
A simple modification: weighted norms
$$ D(\bfx,\bfy) = \left( \sum_{i=1}^{n_f} \bfw_i |\bfx_i-\bfy_i|^p \right)^{\frac 1p} $$
where $\bfw >0$ is a vector of positive weights.
Allows us to focus on some components and scale the metric.
\end{frame}
\begin{frame}
\frametitle{Similarity Measures: Metrics - 3}
Are these signals similar?
\begin{center}
\includegraphics[width=5cm]{sincSignal1.png}
\includegraphics[width=5cm]{sincSignal2.png}
\end{center}
Can we find a translation-invariant metric?
\end{frame}
\begin{frame}
\frametitle{Similarity Measures: Metrics - 4}
Which of these image pairs are most similar?
\begin{center}
\begin{tabular}{@{}c@{ }c@{ }c@{}}
\includegraphics[height=2.5cm]{whiteDogCC} &
\includegraphics[height=2.5cm]{whiteCarCC}&
\includegraphics[height=2.5cm]{blackDogCC}\\
\scriptsize \href{https://commons.wikimedia.org/w/index.php?curid=20509768}{(by Christmas w/a K)} &
\scriptsize \href{https://commons.wikimedia.org/w/index.php?curid=12225485}{(by Art Bromage)} &
\scriptsize \href{https://commons.wikimedia.org/w/index.php?curid=38049555}{(by P R Simões)}
% all images under CC BY-SA 2.0
\end{tabular}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Similarity Measures: Metrics - 5}
Many different definitions of distance based on the application
\begin{itemize}
\item normed distance
\item Hamming distance - for strings
\item Wasserstein metric - for probabilities (also applied to images)
\item Riemannian metrics - for data that "lives" on manifolds
\end{itemize}
\bigskip
Choosing the right similarity measure is the key for the application.
In many cases - chicken and egg. If we know the right distance then we know how to cluster.
\bigskip
We will use $\|\cdot\|_2$ for simplicity.
\end{frame}
\section{Similarity Graphs} % (fold)
\label{sec:graph_models}
\begin{frame}[fragile]
\frametitle{Undirected Graphs}
The graph $G(\bfY,\cal E)$ is described by its vertices $\bfy_1, \ldots, \bfy_{n}$ and an edge set $\cal E$.
\bigskip
Example:
\begin{columns}
\column{.6\textwidth}
\begin{verbatim}
Y = [-1 0 .1 .5 -1.5; -1 1 0 0 1];
E = [1 2;1 2;2 3;1 3;3 4;2 4;2 5];
\end{verbatim}
\column{.4\textwidth}
\includegraphics[width=4.5cm]{plotSimpleGraph}
\end{columns}
\bigskip
We will only use undirected graphs: $(i,j) \in {\cal E} \Rightarrow (j,i) \in {\cal E}.$
\end{frame}
\begin{frame}
\frametitle{Adjacency Matrix of a Graph}
The adjacency matrix of $G(\bfY,\cal E)$ is $\bfA \in \{0,1\}^{n \times n}$ with
\begin{equation*}
\bfA_{ij} = \begin{cases}
1, & \text{if there is an edge between $\bfy_i$ and $\bfy_j$} \\
0, & \text{else}.
\end{cases}
\end{equation*}
\begin{columns}
\column{.5\textwidth}
\includegraphics[width=4.5cm]{plotSimpleGraph}
\column{.5\textwidth}
$ \Rightarrow \bfA = \begin{pmatrix} 0 & 1 & 1 & 0 & 0 \\
1 & 0 & 1 & 1 & 1 \\
1 & 1 & 0 & 1 & 0 \\
0 & 1 & 1 & 0 & 0 \\
0 & 1 & 0 & 0 & 0 \end{pmatrix} $
\end{columns}
\begin{center}
Note: $\bfY$ and $\bfA$ fully describe the graph (no need to store $\cal E$).
\end{center}
\end{frame}
\begin{frame}
\frametitle{Degree Matrix of a Graph}
The degree matrix is
$$ {\bfD}_{ii} = {\rm diag}\left( \sum_j \bfA_{ij} \right) \in \R^{n\times n}$$.
\bigskip
\begin{columns}
\column{.5\textwidth}
\includegraphics[width=4.5cm]{plotSimpleGraph}
\column{.5\textwidth}
$ \Rightarrow \bfD = \begin{pmatrix} 2 & 0 & 0 & 0 & 0 \\
0 & 4 & 0 & 0 & 0 \\
0 & 0 & 4 & 0 & 0 \\
0 & 0 & 0 & 2 & 0 \\
0 & 0 & 0 & 0 & 1 \end{pmatrix} $
\end{columns}
\bigskip
$\bfD_{ii}$ is the degree of node $\bfy_i$ ($\approx$ importance of $\bfy_i$).
\end{frame}
\begin{frame}
\frametitle{Weighted Adjacency Matrix of a Graph}
The weighted adjacency matrix of $G(\bfY,\cal E)$ is $\bfW \in \R_{+}^{n \times n}$ with
\begin{equation*}
\bfW_{ij} \begin{cases}
> 0 & \text{ if } \bfA_{ij} = 1 \\
= 0 & \text{ otherwise.}
\end{cases}
\end{equation*}
Use a similarity measure to compute the entries in $\bfW$, e.g.,
$$ \bfW_{ij} = \exp\left(-{\frac {D(\bfy_i,\bfy_j)}{\sigma}} \right). $$
As before, the degree matrix is
$$ {\bfD}_{ii} = {\rm diag}\left( \sum_j \bfW_{ij} \right) \in \R^{n\times n}.$$
$\bfD_{ii}$ is the degree of node $\bfy_i$ ($\approx$ importance of $\bfy_i$).
\end{frame}
\begin{frame}
\frametitle{$k$-Nearest Neighbor Graph}
Given: Data $\bfY$, $k \in \mathbb{N}$, and a distance function $D$.
Idea: Set $\bfA_{ij} = \bfA_{ji}=1$ if
$\bfy_i$ is among the $k$ nearest neighbors of $\bfy_j$ with respect to $D$ or vice versa.
\bigskip
This is not the only option. Common alternatives:
\begin{itemize}
\item \textbf{$\epsilon$-neighborhood graph: } add an edge between $\bfy_i$ and $\bfy_j$ if $D(\bfy_i,\bfy_j) < \epsilon$
\item \textbf{mutual $k$-nearest neighborhood graph: } add an edge between $\bfy_i$ and $\bfy_j$ if
$\bfy_i$ is among the $k$ nearest neighbors of $\bfy_j$ \emph{and} vice versa.
\item \textbf{fully-connected graph: } add an edge between all examples.
\end{itemize}
\bigskip
In all these cases, we return the weighted adjacency matrix, whose entries depend on $D$.
\end{frame}
\section{Graph Laplacians} % (fold)
\label{sec:graph_laplacians}
\begin{frame}
\frametitle{The Graph Laplacian }
The graph Laplacian of $G(\bfY,{\cal E})$ is
$$ \bfL = \bfD - \bfA $$
For our example, we get
$$ \bfL = \left(\begin{array}{rrrrr} 2 & -1 & -1 & 0 & 0 \\
-1 & 4 & -1 & -1 & -1 \\
-1 & -1 & 4 & -1 & 0 \\
0 & -1 & -1 & 2 & 0 \\
0 & -1 & 0 & 0 & 1 \end{array} \right)$$
Note that for a vertex function $\bfv \in \R^n$
$$ (\bfL \bfv)_i = \sum_{j=1}^n \bfA_{ij} (\bfv_i - \bfv_j) \quad \text{and} \quad \bfv^{\top}\bfL \bfv = \sum_{i,j=1}^n \bfA_{ij}(\bfv_i - \bfv_j)^2$$
\end{frame}
\begin{frame}
\frametitle{Weighted Graph Laplacian }
Similar to the previous slide, we define the weighted graph Laplacian of $G(\bfY,{\cal E})$ as
$$ \bfL = \bfD - \bfW$$
($\bfD$ is the degree matrix of the weighted adjacency matrix $\bfW$)
\bigskip
For a vertex function $\bfv \in \R^n$, we obtain
$$ (\bfL \bfv)_i = \sum_{j=1}^n \bfW_{ij} (\bfv_i - \bfv_j) \quad \text{and} \quad \bfv^{\top}\bfL \bfv = \sum_{i,j=1}^n \bfW_{ij}(\bfv_i - \bfv_j)^2$$
% In our experiments, we use
% $$ \bfW_{ij} = \exp\left(-{\frac {\|\bfy_i - \bfy_j\|^2}{\sigma}} \right) $$
\end{frame}
\begin{frame}
\frametitle{Eigenvalues of the Graph Laplacian}
\begin{center}
\iwidth=32mm
\begin{tabular}{@{}c@{}c@{}c@{}}
\includegraphics[width=\iwidth,trim=90 0 80 0, clip=true]{eigLap-nnc-2} &
\includegraphics[width=\iwidth,trim=90 0 80 0, clip=true]{eigLap-nnc-1} &
\includegraphics[width=\iwidth,trim=90 0 80 0, clip=true]{eigLap-fc} \\
\scriptsize $\lambda_2 \approx 1.9\cdot 10^{-15}$ &
\scriptsize $\lambda_2 \approx 8.7\cdot 10^{-3}$ &
\scriptsize $\lambda_2 \approx 4.0\cdot 10^{-1}$ \\
\end{tabular}
\end{center}
The first (i.e., smallest) eigenvalue is always $0$ with eigenvector $\bfv = [1,\ldots,1]^{\top}$ (why?)
\bigskip
The multiplicity of the eigenvalue $0$ equals the number of connected components in the graph.
\bigskip
The smallest non-zero eigenvalue is the Fiedler eigenvalue.
\end{frame}
\begin{frame}
\frametitle{Fiedler Vector}
Assume there is only one connected component. Then, the eigenvector associated with the second eigenvalue can be obtained by solving
\begin{columns}
\column{.6\textwidth}
\begin{eqnarray*}
\min_{\bfu\not=\gamma\bfe} && \hf \bfu^{\top} \bfL \bfu \\
\text{subject to} && \|\bfu \| = 1
\end{eqnarray*}
Interpretation: Find the non-constant vector with the minimal energy (i.e., as smooth as possible)
\bigskip
\column{.4\textwidth}
\includegraphics[width=45mm,trim=60 0 30 0, clip=true]{eigLap-nnc-2-fiedler} \\
\end{columns}
It (approximately) holds that $\bfu_i > 0$ for examples in the first group and $\bfu_i<0$ for examples in the second group.
\end{frame}
\begin{frame}
\frametitle{Computing the Fiedler Vector}
The Fiedler vector can be computed by solving the optimization problem
\begin{eqnarray*}
\min_{\bfu\not=\gamma\bfe} && \hf \bfu^{\top} \bfL \bfu \\
\text{subject to} && \|\bfu \| = 1
\end{eqnarray*}
\bigskip
General idea:
\begin{itemize}
\item
For small problems use eig solver of a dense matrix
\item
For large problem use iterative methods - inverse iteration, Krylov methods, randomized linear algebra
\end{itemize}
\bigskip
Simple (but not very efficient) option is the power method:
$$ \bfv_{k} = \bfL^{\dag} \bfu_k \quad \quad \bfu_{k+1} = {\frac {\bfv_k}{\|\bfv_k\|}},\quad k=1,\ldots $$
\end{frame}
% section graph_laplacians (end)
\section{Spectral Clustering Algorithms} % (fold)
\label{sec:spectral_clustering_algorithms}
\begin{frame}
\frametitle{Algorithm: Normalized Spectral Clustering~\cite{NgEtAl2002}}
Input: Weighted adjacency matrix $\bfW$\\
Hyperparameters: $n_c$ (no. of clusters), $n_v$ (number of eigenvectors), $k,\sigma$ (for constructing $\bfW$)
\begin{enumerate}
\item compute Laplacian $\bfL = \bfD - \bfW$
\item normalize Laplacian $\bfL_{\rm sym} = \bfD^{-1/2} \bfL \bfD^{-1/2}$
\item compute $\bfu_1,\ldots,\bfu_{n_v}$ the first $n_v$ eigenvectors of $\bfL_{\rm sym}$
\item define new feature matrix
\begin{equation*}
\bfU = \left(
\begin{array}{r}
\bfu_1^\top\\
\bfu_2^\top\\
\vdots\\
\bfu_{n_c}^\top
\end{array}
\right)\in \R^{n_v \times n}
\end{equation*}
\item use $k$-means to cluster the columns of $\bfU$ into $n_v$ classes
\end{enumerate}
Output: $\bfC \in \R^{n_c \times n}$($\bfC_{ij}=1$ if example $j$ belongs to class $i$)
\end{frame}
% section spectral_clustering_algorithms (end)
\section{Semisupervised Learning} % (fold)
\label{sec:semisupervised_learning}
\begin{frame}
\frametitle{Graph Laplacians in Semisupervised Learning}
Goal: Given $(\bfy_1, \bfc_1), (\bfy_2, \bfc_2), \ldots, (\bfy_k,\bfc_k)$ obtained using
\begin{equation*}
\bfc = f(\bfy) + \boldsymbol{\epsilon}, \quad \text{($\epsilon$ is some noise)}
\end{equation*}
estimate $f(\bfy_{k+1}), f(\bfy_{k+2}), \ldots, f(\bfy_n)$. Remarks:
\begin{itemize}
\item
in most cases it is possible to obtain a few labeled data
\item
can work well if the unlabeled data is similar to the labeled one and $f$ is smooth
\item
typically more robust than unsupervised learning
\end{itemize}
\bigskip
Example : Let $n_c=1$. Solve optimization problem for $\bff \in \R^n$
\begin{equation*}
\min_{\bff} \hf \sum_{i=1}^k (\bff_i - \bfc_i)^2 + \frac{\alpha}{2} \bff^\top \bfL \bff, \quad \alpha > 0
\end{equation*}
% Assumption: we are given a set ${\cal S}$ where $\bfp_{{\cal S}}^{\rm obs}$ is the probability of each datum to belong to each class
\end{frame}
% \begin{frame}
% \frametitle{Graph Laplacians in Semisupervised Learning}
%
% {\bf Incorporating probabilities - the softmax function}
%
% \begin{itemize}
% \item $\bfp^{\rm obs}$ is a probability, $0 \le \bfp_i^{\rm obs} \le 1$ and $\sum \bfp^{\rm obs} = 1$.®
%
% \item $\bfu$ is unbounded
%
% \item Define $\bfp(\bfu) = {\frac {\exp(\bfu)}{\sum \exp(\bfu)}}$
%
% \item Use cross entropy to compare probabilities, $\bfp(\bfu)$ and $\bfp^{\rm obs}$
% $$ {\ell oss}(\bfu,\bfp^{\rm obs}) = -{\frac 1n} \bfp_{\rm obs}^{\top} \log(\bfp(\bfu)) $$
%
% \end{itemize}
%
% \end{frame}
% \begin{frame}
% \frametitle{From unsupervised to semisupervised learning }
%
% {\bf New goal} - Fit the given labels {\bf and} keep the vector smooth.
%
% $$ \min_{\bfu} \ {\cal E}(\bfu) = {\ell oss}(\bfu,\bfp^{\rm obs}) + {\frac \alpha 2} \bfu^{\top} \bfL \bfu $$
%
% \begin{itemize}
% \item $\alpha$ tradeoff parameter
% \item Can be estimated using cross validation
% \item Solution using inexact Newton's method
% \end{itemize}
%
% \end{frame}
%
%
% \begin{frame}
% \frametitle{From unsupervised to semisupervised learning }
%
% {\bf Example - classifying nonlinear data}
%
% \begin{center}
% \includegraphics[width=5cm]{dataSemiSup.png}
% \begin{tabular}{cc}
% \includegraphics[width=4.5cm]{graphLapCirc.png} &
% \includegraphics[width=4.5cm]{graphLapCircReord.png} \\
% Graph Lap & Reordered Graph Lap
% \end{tabular}
% \end{center}
%
%
%
% \end{frame}
%
% \begin{frame}
% \frametitle{From unsupervised to semisupervised learning }
%
%
% \begin{center}
% \begin{tabular}{ccc}
% \includegraphics[width=3.6cm]{probClass1.png} &
% \includegraphics[width=3.6cm]{probClass2.png} &
% \includegraphics[width=3.6cm]{probClass3.png} \\
% Class 1 & Class 2 & Class 3
% \end{tabular}
% \end{center}
%
%
% \end{frame}
% section semisupervised_learning (end)
\section{Summary} % (fold)
\label{sec:summary}
\begin{frame}
\frametitle{$\Sigma$: Spectral Clustering for Unsupervised Learning}
\begin{itemize}
\item our focus: graph-based methods
\item key idea: Given $\bfY$, create weighted undirected graph. Choices:
\begin{itemize}
\item distance function (defines similarity)
\item criteria for edges (control sparsity)
\item weights for graph (usually based on distance)
\end{itemize}
\item spectral clustering requires first few eigenvectors
\begin{itemize}
\item naive complexity $n^3$
\item use iterative/randomized linear algebra for large $n$
\end{itemize}
\item semi-supervised learning
\begin{itemize}
\item use graph Laplacian to obtain smooth mapping
\end{itemize}
\end{itemize}
\end{frame}
% section summary (end)
\begin{frame}[allowframebreaks]
\frametitle{References}
\bibliographystyle{abbrv}
\bibliography{NumDNN}
\end{frame}
\end{document}