Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Aprendizaje Supervisado
Training set:
Andrew Ng
Aprendizaje no Supervisado
Training set:
Andrew Ng
Andrew Ng
Clustering
Algorit o /' eans
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Algoritmo K-means (ntrada: )n0 ero de clusters. Training set )drop convention.
Andrew Ng
Algoritmo K-means
1ando l" initialize cluster centroids 1epeat 2 +or 3 4 to :3 inde5 )+ro 4 to . o+ cluster centroid closest to +or 3 4 to :3 average ) ean. o+ points assigned to cluster 6
Andrew Ng
,eight
7eight
Andrew Ng
Clustering
O8jetivo de Opti izacin
Objetivo de optimizacin K-means 3 inde5 o+ cluster )4-9-:- . to which e5a ple assigned 3 cluster centroid ) . 3 cluster centroid o+ cluster to which e5a ple assigned Opti ization o8jective: is currentl" has 8een
Andrew Ng
1epeat 2 +or 3 4 to :3 inde5 )+ro 4 to . o+ cluster centroid closest to +or 3 4 to :3 average ) ean. o+ points assigned to cluster 6
Andrew Ng
Clustering
Inicializacin Aleatoria
1epeat 2 +or 3 4 to :3 inde5 )+ro 4 to . o+ cluster centroid closest to +or 3 4 to :3 average ) ean. o+ points assigned to cluster 6
Andrew Ng
Inicializacin aleatoria Should have 1ando l" pic! e5a ples. Set e5a ples. training e;ual to these
Andrew Ng
ptimo Local
<uena solucin
Andrew Ng
Inicializacin Aleatoria =or i 3 4 to 4>> 2 1ando l" initialize /' eans. 1un /' eans. ?et Co pute cost +unction )distortion. 6 %ic! clustering that gave lowest cost
Andrew Ng
Clustering
(scogiendo el n0 ero de clusters
Andrew Ng
Andrew Ng
Cost +unction
Cost +unction
4
)no. o+ clusters.
)no. o+ clusters.
Andrew Ng
!scogiendo el valor de K So eti es- "ouFre running /' eans to get clusters to use +or so e later#downstrea purpose. (valuate /' eans 8ased on a etric +or how well it per+or s +or that later purpose. (.g.
T'shirt sizing T'shirt sizing
,eight
,eight
7eight
7eight
Andrew Ng
%ro8le as
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
Andrew Ng
=IN
Andrew Ng