Browse Source

Add k-means figure save

pull/6/MERGE
bushuhui 3 years ago
parent
commit
4e76b23bd6
7 changed files with 56 additions and 50 deletions
  1. +7
    -3
      2_knn/knn_classification.ipynb
  2. +45
    -45
      3_kmeans/1-k-means.ipynb
  3. +4
    -2
      3_kmeans/2-kmeans-color-vq.ipynb
  4. BIN
      3_kmeans/k-means_data.pdf
  5. BIN
      3_kmeans/k-means_groundtruth.pdf
  6. BIN
      3_kmeans/k-means_predict.pdf
  7. BIN
      3_kmeans/k-means_silhouette_coef.pdf

+ 7
- 3
2_knn/knn_classification.ipynb View File

@@ -322,7 +322,9 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 3,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [ "source": [
"import numpy as np\n", "import numpy as np\n",
@@ -479,7 +481,9 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 9,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [ "source": [
"# split train / test data\n", "# split train / test data\n",
@@ -570,7 +574,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.5.4"
} }
}, },
"nbformat": 4, "nbformat": 4,


+ 45
- 45
3_kmeans/1-k-means.ipynb
File diff suppressed because it is too large
View File


+ 4
- 2
3_kmeans/2-kmeans-color-vq.ipynb View File

@@ -16,7 +16,9 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [ "source": [
"%matplotlib inline\n", "%matplotlib inline\n",
@@ -206,7 +208,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.5.4"
} }
}, },
"nbformat": 4, "nbformat": 4,


BIN
3_kmeans/k-means_data.pdf View File


BIN
3_kmeans/k-means_groundtruth.pdf View File


BIN
3_kmeans/k-means_predict.pdf View File


BIN
3_kmeans/k-means_silhouette_coef.pdf View File


Loading…
Cancel
Save