{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[]},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"markdown","source":["For help on using the functions see the documentation:\n","\n","Hierarchical Clustering:\n","https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.dendrogram.html\n","https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.linkage.html\n","\n","KMeans:\n","https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html\n","\n","Gaussian Mixture:\n","https://scikit-learn.org/stable/modules/generated/sklearn.mixture.GaussianMixture.html\n","\n","Principle Component Analysis (PCA):\n","https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html\n","\n","(or Google sklearn PCA)"],"metadata":{"id":"3wyp_H1-v2Cd"}},{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":206},"id":"mjb5yki5IjZg","executionInfo":{"status":"ok","timestamp":1699480991464,"user_tz":300,"elapsed":204,"user":{"displayName":"Vincent Fong","userId":"17144638315724899862"}},"outputId":"6e70c874-c3cf-4b92-e58b-458156fae4b2"},"outputs":[{"output_type":"execute_result","data":{"text/plain":[" sepal width (cm) petal length (cm)\n","0 3.5 1.4\n","1 3.0 1.4\n","2 3.2 1.3\n","3 3.1 1.5\n","4 3.6 1.4"],"text/html":["\n","
\n"," | sepal width (cm) | \n","petal length (cm) | \n","
---|---|---|
0 | \n","3.5 | \n","1.4 | \n","
1 | \n","3.0 | \n","1.4 | \n","
2 | \n","3.2 | \n","1.3 | \n","
3 | \n","3.1 | \n","1.5 | \n","
4 | \n","3.6 | \n","1.4 | \n","
KMeans(n_clusters=3)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
KMeans(n_clusters=3)