├── .ipynb_checkpoints ├── load_iris_data-checkpoint.ipynb ├── load_wine_data-checkpoint.ipynb ├── load_zoo_data-checkpoint.ipynb └── train-checkpoint.ipynb ├── LICENSE ├── README.md ├── __pycache__ ├── core.cpython-37.pyc └── test.cpython-37.pyc ├── data_set ├── data_transformed │ └── raw_dataset.out ├── iris.data ├── soybean-small.data ├── wine.data └── zoo.data ├── load_iris_data.ipynb ├── load_iris_data.py ├── load_soybean_data.ipynb ├── load_soybean_data.py ├── load_wine_data.ipynb ├── load_wine_data.py ├── load_zoo_data.ipynb ├── load_zoo_data.py ├── minmax_out ├── test_minmax.out └── train_minmax.out ├── mod ├── __pycache__ │ ├── core.cpython-37.pyc │ └── datatest.cpython-37.pyc ├── core.py └── datatest.py ├── references ├── 1995(CCA起源文章1)-Programming based learning algori.pdf ├── 1999(CCA起源文章2)-A Geometrical Representation of M.pdf └── 构造性覆盖算法.pdf ├── result ├── full │ └── full_result.json ├── result1.json ├── result2.json └── result3.json ├── train.ipynb └── train.py /.ipynb_checkpoints/load_iris_data-checkpoint.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\iris.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "label_set = (\n", 33 | " b'Iris-setosa',\n", 34 | " b'Iris-versicolor',\n", 35 | " b'Iris-virginica',\n", 36 | ")\n", 37 | "def read_label2(label):\n", 38 | " return label_set.index(label)" 39 | ] 40 | }, 41 | { 42 | "cell_type": "code", 43 | "execution_count": 4, 44 | "metadata": {}, 45 | "outputs": [ 46 | { 47 | "name": "stdout", 48 | "output_type": "stream", 49 | "text": [ 50 | "[[5.1 3.5 1.4 0.2 0. ]\n", 51 | " [4.9 3. 1.4 0.2 0. ]\n", 52 | " [4.7 3.2 1.3 0.2 0. ]\n", 53 | " [4.6 3.1 1.5 0.2 0. ]\n", 54 | " [5. 3.6 1.4 0.2 0. ]\n", 55 | " [5.4 3.9 1.7 0.4 0. ]\n", 56 | " [4.6 3.4 1.4 0.3 0. ]\n", 57 | " [5. 3.4 1.5 0.2 0. ]\n", 58 | " [4.4 2.9 1.4 0.2 0. ]\n", 59 | " [4.9 3.1 1.5 0.1 0. ]\n", 60 | " [5.4 3.7 1.5 0.2 0. ]\n", 61 | " [4.8 3.4 1.6 0.2 0. ]\n", 62 | " [4.8 3. 1.4 0.1 0. ]\n", 63 | " [4.3 3. 1.1 0.1 0. ]\n", 64 | " [5.8 4. 1.2 0.2 0. ]\n", 65 | " [5.7 4.4 1.5 0.4 0. ]\n", 66 | " [5.4 3.9 1.3 0.4 0. ]\n", 67 | " [5.1 3.5 1.4 0.3 0. ]\n", 68 | " [5.7 3.8 1.7 0.3 0. ]\n", 69 | " [5.1 3.8 1.5 0.3 0. ]\n", 70 | " [5.4 3.4 1.7 0.2 0. ]\n", 71 | " [5.1 3.7 1.5 0.4 0. ]\n", 72 | " [4.6 3.6 1. 0.2 0. ]\n", 73 | " [5.1 3.3 1.7 0.5 0. ]\n", 74 | " [4.8 3.4 1.9 0.2 0. ]\n", 75 | " [5. 3. 1.6 0.2 0. ]\n", 76 | " [5. 3.4 1.6 0.4 0. ]\n", 77 | " [5.2 3.5 1.5 0.2 0. ]\n", 78 | " [5.2 3.4 1.4 0.2 0. ]\n", 79 | " [4.7 3.2 1.6 0.2 0. ]\n", 80 | " [4.8 3.1 1.6 0.2 0. ]\n", 81 | " [5.4 3.4 1.5 0.4 0. ]\n", 82 | " [5.2 4.1 1.5 0.1 0. ]\n", 83 | " [5.5 4.2 1.4 0.2 0. ]\n", 84 | " [4.9 3.1 1.5 0.1 0. ]\n", 85 | " [5. 3.2 1.2 0.2 0. ]\n", 86 | " [5.5 3.5 1.3 0.2 0. ]\n", 87 | " [4.9 3.1 1.5 0.1 0. ]\n", 88 | " [4.4 3. 1.3 0.2 0. ]\n", 89 | " [5.1 3.4 1.5 0.2 0. ]\n", 90 | " [5. 3.5 1.3 0.3 0. ]\n", 91 | " [4.5 2.3 1.3 0.3 0. ]\n", 92 | " [4.4 3.2 1.3 0.2 0. ]\n", 93 | " [5. 3.5 1.6 0.6 0. ]\n", 94 | " [5.1 3.8 1.9 0.4 0. ]\n", 95 | " [4.8 3. 1.4 0.3 0. ]\n", 96 | " [5.1 3.8 1.6 0.2 0. ]\n", 97 | " [4.6 3.2 1.4 0.2 0. ]\n", 98 | " [5.3 3.7 1.5 0.2 0. ]\n", 99 | " [5. 3.3 1.4 0.2 0. ]\n", 100 | " [7. 3.2 4.7 1.4 1. ]\n", 101 | " [6.4 3.2 4.5 1.5 1. ]\n", 102 | " [6.9 3.1 4.9 1.5 1. ]\n", 103 | " [5.5 2.3 4. 1.3 1. ]\n", 104 | " [6.5 2.8 4.6 1.5 1. ]\n", 105 | " [5.7 2.8 4.5 1.3 1. ]\n", 106 | " [6.3 3.3 4.7 1.6 1. ]\n", 107 | " [4.9 2.4 3.3 1. 1. ]\n", 108 | " [6.6 2.9 4.6 1.3 1. ]\n", 109 | " [5.2 2.7 3.9 1.4 1. ]\n", 110 | " [5. 2. 3.5 1. 1. ]\n", 111 | " [5.9 3. 4.2 1.5 1. ]\n", 112 | " [6. 2.2 4. 1. 1. ]\n", 113 | " [6.1 2.9 4.7 1.4 1. ]\n", 114 | " [5.6 2.9 3.6 1.3 1. ]\n", 115 | " [6.7 3.1 4.4 1.4 1. ]\n", 116 | " [5.6 3. 4.5 1.5 1. ]\n", 117 | " [5.8 2.7 4.1 1. 1. ]\n", 118 | " [6.2 2.2 4.5 1.5 1. ]\n", 119 | " [5.6 2.5 3.9 1.1 1. ]\n", 120 | " [5.9 3.2 4.8 1.8 1. ]\n", 121 | " [6.1 2.8 4. 1.3 1. ]\n", 122 | " [6.3 2.5 4.9 1.5 1. ]\n", 123 | " [6.1 2.8 4.7 1.2 1. ]\n", 124 | " [6.4 2.9 4.3 1.3 1. ]\n", 125 | " [6.6 3. 4.4 1.4 1. ]\n", 126 | " [6.8 2.8 4.8 1.4 1. ]\n", 127 | " [6.7 3. 5. 1.7 1. ]\n", 128 | " [6. 2.9 4.5 1.5 1. ]\n", 129 | " [5.7 2.6 3.5 1. 1. ]\n", 130 | " [5.5 2.4 3.8 1.1 1. ]\n", 131 | " [5.5 2.4 3.7 1. 1. ]\n", 132 | " [5.8 2.7 3.9 1.2 1. ]\n", 133 | " [6. 2.7 5.1 1.6 1. ]\n", 134 | " [5.4 3. 4.5 1.5 1. ]\n", 135 | " [6. 3.4 4.5 1.6 1. ]\n", 136 | " [6.7 3.1 4.7 1.5 1. ]\n", 137 | " [6.3 2.3 4.4 1.3 1. ]\n", 138 | " [5.6 3. 4.1 1.3 1. ]\n", 139 | " [5.5 2.5 4. 1.3 1. ]\n", 140 | " [5.5 2.6 4.4 1.2 1. ]\n", 141 | " [6.1 3. 4.6 1.4 1. ]\n", 142 | " [5.8 2.6 4. 1.2 1. ]\n", 143 | " [5. 2.3 3.3 1. 1. ]\n", 144 | " [5.6 2.7 4.2 1.3 1. ]\n", 145 | " [5.7 3. 4.2 1.2 1. ]\n", 146 | " [5.7 2.9 4.2 1.3 1. ]\n", 147 | " [6.2 2.9 4.3 1.3 1. ]\n", 148 | " [5.1 2.5 3. 1.1 1. ]\n", 149 | " [5.7 2.8 4.1 1.3 1. ]\n", 150 | " [6.3 3.3 6. 2.5 2. ]\n", 151 | " [5.8 2.7 5.1 1.9 2. ]\n", 152 | " [7.1 3. 5.9 2.1 2. ]\n", 153 | " [6.3 2.9 5.6 1.8 2. ]\n", 154 | " [6.5 3. 5.8 2.2 2. ]\n", 155 | " [7.6 3. 6.6 2.1 2. ]\n", 156 | " [4.9 2.5 4.5 1.7 2. ]\n", 157 | " [7.3 2.9 6.3 1.8 2. ]\n", 158 | " [6.7 2.5 5.8 1.8 2. ]\n", 159 | " [7.2 3.6 6.1 2.5 2. ]\n", 160 | " [6.5 3.2 5.1 2. 2. ]\n", 161 | " [6.4 2.7 5.3 1.9 2. ]\n", 162 | " [6.8 3. 5.5 2.1 2. ]\n", 163 | " [5.7 2.5 5. 2. 2. ]\n", 164 | " [5.8 2.8 5.1 2.4 2. ]\n", 165 | " [6.4 3.2 5.3 2.3 2. ]\n", 166 | " [6.5 3. 5.5 1.8 2. ]\n", 167 | " [7.7 3.8 6.7 2.2 2. ]\n", 168 | " [7.7 2.6 6.9 2.3 2. ]\n", 169 | " [6. 2.2 5. 1.5 2. ]\n", 170 | " [6.9 3.2 5.7 2.3 2. ]\n", 171 | " [5.6 2.8 4.9 2. 2. ]\n", 172 | " [7.7 2.8 6.7 2. 2. ]\n", 173 | " [6.3 2.7 4.9 1.8 2. ]\n", 174 | " [6.7 3.3 5.7 2.1 2. ]\n", 175 | " [7.2 3.2 6. 1.8 2. ]\n", 176 | " [6.2 2.8 4.8 1.8 2. ]\n", 177 | " [6.1 3. 4.9 1.8 2. ]\n", 178 | " [6.4 2.8 5.6 2.1 2. ]\n", 179 | " [7.2 3. 5.8 1.6 2. ]\n", 180 | " [7.4 2.8 6.1 1.9 2. ]\n", 181 | " [7.9 3.8 6.4 2. 2. ]\n", 182 | " [6.4 2.8 5.6 2.2 2. ]\n", 183 | " [6.3 2.8 5.1 1.5 2. ]\n", 184 | " [6.1 2.6 5.6 1.4 2. ]\n", 185 | " [7.7 3. 6.1 2.3 2. ]\n", 186 | " [6.3 3.4 5.6 2.4 2. ]\n", 187 | " [6.4 3.1 5.5 1.8 2. ]\n", 188 | " [6. 3. 4.8 1.8 2. ]\n", 189 | " [6.9 3.1 5.4 2.1 2. ]\n", 190 | " [6.7 3.1 5.6 2.4 2. ]\n", 191 | " [6.9 3.1 5.1 2.3 2. ]\n", 192 | " [5.8 2.7 5.1 1.9 2. ]\n", 193 | " [6.8 3.2 5.9 2.3 2. ]\n", 194 | " [6.7 3.3 5.7 2.5 2. ]\n", 195 | " [6.7 3. 5.2 2.3 2. ]\n", 196 | " [6.3 2.5 5. 1.9 2. ]\n", 197 | " [6.5 3. 5.2 2. 2. ]\n", 198 | " [6.2 3.4 5.4 2.3 2. ]\n", 199 | " [5.9 3. 5.1 1.8 2. ]]\n" 200 | ] 201 | } 202 | ], 203 | "source": [ 204 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',', converters ={4:read_label2})\n", 205 | "print(raw_dataset)" 206 | ] 207 | }, 208 | { 209 | "cell_type": "code", 210 | "execution_count": 5, 211 | "metadata": {}, 212 | "outputs": [ 213 | { 214 | "ename": "PermissionError", 215 | "evalue": "[Errno 13] Permission denied: 'E:\\\\AI\\\\data_set\\\\data_transformed'", 216 | "output_type": "error", 217 | "traceback": [ 218 | "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", 219 | "\u001b[1;31mPermissionError\u001b[0m Traceback (most recent call last)", 220 | "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0msavetxt\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mdataset_out_path\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mraw_dataset\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdelimiter\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m','\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", 221 | "\u001b[1;32m<__array_function__ internals>\u001b[0m in \u001b[0;36msavetxt\u001b[1;34m(*args, **kwargs)\u001b[0m\n", 222 | "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\numpy\\lib\\npyio.py\u001b[0m in \u001b[0;36msavetxt\u001b[1;34m(fname, X, fmt, delimiter, newline, header, footer, comments, encoding)\u001b[0m\n\u001b[0;32m 1362\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0m_is_string_like\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 1363\u001b[0m \u001b[1;31m# datasource doesn't support creating a new file ...\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1364\u001b[1;33m \u001b[0mopen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'wt'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mclose\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 1365\u001b[0m \u001b[0mfh\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mlib\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_datasource\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mopen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'wt'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mencoding\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mencoding\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 1366\u001b[0m \u001b[0mown_fh\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mTrue\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", 223 | "\u001b[1;31mPermissionError\u001b[0m: [Errno 13] Permission denied: 'E:\\\\AI\\\\data_set\\\\data_transformed'" 224 | ] 225 | } 226 | ], 227 | "source": [ 228 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 229 | ] 230 | } 231 | ], 232 | "metadata": { 233 | "kernelspec": { 234 | "display_name": "Python 3", 235 | "language": "python", 236 | "name": "python3" 237 | }, 238 | "language_info": { 239 | "codemirror_mode": { 240 | "name": "ipython", 241 | "version": 3 242 | }, 243 | "file_extension": ".py", 244 | "mimetype": "text/x-python", 245 | "name": "python", 246 | "nbconvert_exporter": "python", 247 | "pygments_lexer": "ipython3", 248 | "version": "3.7.3" 249 | } 250 | }, 251 | "nbformat": 4, 252 | "nbformat_minor": 2 253 | } 254 | -------------------------------------------------------------------------------- /.ipynb_checkpoints/load_wine_data-checkpoint.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\wine.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "def read_label2(label):\n", 33 | " return str(int(label)-1)" 34 | ] 35 | }, 36 | { 37 | "cell_type": "code", 38 | "execution_count": 4, 39 | "metadata": {}, 40 | "outputs": [ 41 | { 42 | "name": "stdout", 43 | "output_type": "stream", 44 | "text": [ 45 | "[[1065. 14.23 1.71 ... 1.04 3.92 0. ]\n", 46 | " [1050. 13.2 1.78 ... 1.05 3.4 0. ]\n", 47 | " [1185. 13.16 2.36 ... 1.03 3.17 0. ]\n", 48 | " ...\n", 49 | " [ 835. 13.27 4.28 ... 0.59 1.56 2. ]\n", 50 | " [ 840. 13.17 2.59 ... 0.6 1.62 2. ]\n", 51 | " [ 560. 14.13 4.1 ... 0.61 1.6 2. ]]\n" 52 | ] 53 | } 54 | ], 55 | "source": [ 56 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',',converters ={0:read_label2})\n", 57 | "raw_dataset_label = raw_dataset[...,0]\n", 58 | "rm = raw_dataset_label.size\n", 59 | "raw_dataset_label = raw_dataset_label.reshape(rm,1)\n", 60 | "raw_dataset = np.concatenate((raw_dataset[...,1:],raw_dataset_label),axis = 1)\n", 61 | "print(raw_dataset)" 62 | ] 63 | }, 64 | { 65 | "cell_type": "code", 66 | "execution_count": 5, 67 | "metadata": {}, 68 | "outputs": [], 69 | "source": [ 70 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 71 | ] 72 | } 73 | ], 74 | "metadata": { 75 | "kernelspec": { 76 | "display_name": "Python 3", 77 | "language": "python", 78 | "name": "python3" 79 | }, 80 | "language_info": { 81 | "codemirror_mode": { 82 | "name": "ipython", 83 | "version": 3 84 | }, 85 | "file_extension": ".py", 86 | "mimetype": "text/x-python", 87 | "name": "python", 88 | "nbconvert_exporter": "python", 89 | "pygments_lexer": "ipython3", 90 | "version": "3.7.3" 91 | } 92 | }, 93 | "nbformat": 4, 94 | "nbformat_minor": 2 95 | } 96 | -------------------------------------------------------------------------------- /.ipynb_checkpoints/load_zoo_data-checkpoint.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\zoo.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "def read_label2(label):\n", 33 | " return str(int(label)-1)" 34 | ] 35 | }, 36 | { 37 | "cell_type": "code", 38 | "execution_count": 4, 39 | "metadata": {}, 40 | "outputs": [ 41 | { 42 | "name": "stdout", 43 | "output_type": "stream", 44 | "text": [ 45 | "[[1. 0. 0. ... 0. 1. 0.]\n", 46 | " [1. 0. 0. ... 0. 1. 0.]\n", 47 | " [0. 0. 1. ... 0. 0. 3.]\n", 48 | " ...\n", 49 | " [1. 0. 0. ... 0. 1. 0.]\n", 50 | " [0. 0. 1. ... 0. 0. 6.]\n", 51 | " [0. 1. 1. ... 0. 0. 1.]]\n" 52 | ] 53 | } 54 | ], 55 | "source": [ 56 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',',usecols=(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17),converters ={17:read_label2})\n", 57 | "np.delete(raw_dataset,0,axis = 1)\n", 58 | "print(raw_dataset)" 59 | ] 60 | }, 61 | { 62 | "cell_type": "code", 63 | "execution_count": 5, 64 | "metadata": {}, 65 | "outputs": [], 66 | "source": [ 67 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 68 | ] 69 | } 70 | ], 71 | "metadata": { 72 | "kernelspec": { 73 | "display_name": "Python 3", 74 | "language": "python", 75 | "name": "python3" 76 | }, 77 | "language_info": { 78 | "codemirror_mode": { 79 | "name": "ipython", 80 | "version": 3 81 | }, 82 | "file_extension": ".py", 83 | "mimetype": "text/x-python", 84 | "name": "python", 85 | "nbconvert_exporter": "python", 86 | "pygments_lexer": "ipython3", 87 | "version": "3.7.3" 88 | } 89 | }, 90 | "nbformat": 4, 91 | "nbformat_minor": 2 92 | } 93 | -------------------------------------------------------------------------------- /.ipynb_checkpoints/train-checkpoint.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import sys\n", 10 | "import os.path\n", 11 | "from sklearn.model_selection import KFold\n", 12 | "from sklearn import preprocessing\n", 13 | "import numpy as np\n", 14 | "np.set_printoptions(suppress=True)\n", 15 | "import json" 16 | ] 17 | }, 18 | { 19 | "cell_type": "code", 20 | "execution_count": 2, 21 | "metadata": {}, 22 | "outputs": [], 23 | "source": [ 24 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 25 | "sys.path.append(os.path.join(ROOT_DIR,r'mod'))\n", 26 | "from core import DataTrain\n", 27 | "from datatest import DataTest" 28 | ] 29 | }, 30 | { 31 | "cell_type": "code", 32 | "execution_count": 3, 33 | "metadata": {}, 34 | "outputs": [], 35 | "source": [ 36 | "raw_dataset_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')\n", 37 | "full_result_path = os.path.join(ROOT_DIR,r'result\\full\\full_result.json')\n", 38 | "train_minmax_path = os.path.join(ROOT_DIR,r'minmax_out\\train_minmax.out')\n", 39 | "test_minmax_path = os.path.join(ROOT_DIR,r'minmax_out\\test_minmax.out')" 40 | ] 41 | }, 42 | { 43 | "cell_type": "code", 44 | "execution_count": 4, 45 | "metadata": {}, 46 | "outputs": [], 47 | "source": [ 48 | "raw_dataset = np.loadtxt(raw_dataset_path, delimiter = ',')\n", 49 | "# print(raw_dataset)" 50 | ] 51 | }, 52 | { 53 | "cell_type": "code", 54 | "execution_count": 5, 55 | "metadata": {}, 56 | "outputs": [ 57 | { 58 | "name": "stdout", 59 | "output_type": "stream", 60 | "text": [ 61 | "101 17\n" 62 | ] 63 | } 64 | ], 65 | "source": [ 66 | "m,n = raw_dataset.shape\n", 67 | "print(m,n)" 68 | ] 69 | }, 70 | { 71 | "cell_type": "code", 72 | "execution_count": 6, 73 | "metadata": {}, 74 | "outputs": [], 75 | "source": [ 76 | "# KFold划分\n", 77 | "n_splits = 3" 78 | ] 79 | }, 80 | { 81 | "cell_type": "code", 82 | "execution_count": 7, 83 | "metadata": {}, 84 | "outputs": [], 85 | "source": [ 86 | "# 数据类别数\n", 87 | "classes = 7\n", 88 | "full_result = {}\n", 89 | "for i in range(classes):\n", 90 | " full_result[str(i)] = []\n", 91 | "with open(full_result_path, 'w') as f_full_result:\n", 92 | " json.dump(full_result,f_full_result)" 93 | ] 94 | }, 95 | { 96 | "cell_type": "code", 97 | "execution_count": 8, 98 | "metadata": {}, 99 | "outputs": [ 100 | { 101 | "name": "stdout", 102 | "output_type": "stream", 103 | "text": [ 104 | "第1次迭代测试:\n", 105 | "正确率: 38.24 %\n", 106 | "对测试集所有数据的测试结果\n", 107 | "[[0. 0. 0. 0. 0. 0. 0.]\n", 108 | " [0. 0. 0. 0. 0. 0. 0.]\n", 109 | " [0. 0. 0. 0. 0. 0. 0.]\n", 110 | " [0. 0. 0. 0. 0. 0. 0.]\n", 111 | " [0. 0. 0. 0. 0. 0. 0.]\n", 112 | " [0. 0. 0. 0. 0. 0. 0.]\n", 113 | " [0. 0. 0. 0. 0. 0. 0.]\n", 114 | " [0. 0. 0. 0. 0. 0. 0.]\n", 115 | " [0. 0. 0. 0. 0. 0. 0.]\n", 116 | " [0. 0. 0. 0. 0. 0. 0.]\n", 117 | " [0. 0. 0. 0. 0. 0. 0.]\n", 118 | " [0. 0. 0. 0. 0. 0. 0.]\n", 119 | " [0. 0. 0. 0. 0. 0. 0.]\n", 120 | " [0. 0. 0. 0. 0. 0. 0.]\n", 121 | " [0. 0. 0. 0. 0. 0. 0.]\n", 122 | " [0. 0. 0. 0. 0. 0. 0.]\n", 123 | " [0. 0. 0. 0. 0. 0. 0.]\n", 124 | " [0. 0. 0. 0. 0. 0. 0.]\n", 125 | " [0. 0. 0. 0. 0. 0. 0.]\n", 126 | " [0. 0. 0. 0. 0. 0. 0.]\n", 127 | " [0. 0. 0. 0. 0. 0. 0.]\n", 128 | " [0. 0. 0. 0. 0. 0. 0.]\n", 129 | " [0. 0. 0. 0. 0. 0. 0.]\n", 130 | " [0. 0. 0. 0. 0. 0. 0.]\n", 131 | " [0. 0. 0. 0. 0. 0. 0.]\n", 132 | " [0. 0. 0. 0. 0. 0. 0.]\n", 133 | " [0. 0. 0. 0. 0. 0. 0.]\n", 134 | " [0. 0. 0. 0. 0. 0. 0.]\n", 135 | " [0. 0. 0. 0. 0. 0. 0.]\n", 136 | " [0. 0. 0. 0. 0. 0. 0.]\n", 137 | " [0. 0. 0. 0. 0. 0. 0.]\n", 138 | " [0. 0. 0. 0. 0. 0. 0.]\n", 139 | " [0. 0. 0. 0. 0. 0. 0.]\n", 140 | " [0. 0. 0. 0. 0. 0. 0.]]\n", 141 | "------------------------------------------------------------------\n", 142 | "对测试集所有数据的预测结果\n", 143 | "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n", 144 | "==================================================================\n", 145 | "第2次迭代测试:\n", 146 | "正确率: 97.06 %\n", 147 | "对测试集所有数据的测试结果\n", 148 | "[[21. 0. 0. 0. 0. 0. 0. ]\n", 149 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 150 | " [ 0. 0. 0. 8. 0. 0. 0. ]\n", 151 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 152 | " [ 0. 0. 0. 8. 0. 0. 0. ]\n", 153 | " [ 0. 5. 0. 0. 0. 0. 0. ]\n", 154 | " [ 0. 5. 0. 0. 0. 0. 0. ]\n", 155 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 156 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 157 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 158 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 159 | " [ 0. 0. 0. 8. 0. 0. 0. ]\n", 160 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 161 | " [ 0. 0. 0. 0. 0. 4. 0. ]\n", 162 | " [ 0. 5. 0. 0. 0. 0. 0. ]\n", 163 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 164 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 165 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 166 | " [ 0. 0. 2. 0. 0. 0. 0. ]\n", 167 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 168 | " [ 8. 0. 0. 0. 0. 0. 0. ]\n", 169 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 170 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 171 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 172 | " [ 0. 7. 0. 0. 0. 0. 0. ]\n", 173 | " [12.94 3.73 1.59 1.14 0.75 2.34 1.37]\n", 174 | " [ 0. 0. 0. 8. 0. 0. 0. ]\n", 175 | " [ 9. 0. 0. 0. 0. 0. 0. ]\n", 176 | " [ 0. 4. 0. 0. 0. 0. 0. ]\n", 177 | " [ 0. 0. 0. 6. 0. 0. 0. ]\n", 178 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 179 | " [ 0. 6. 0. 0. 0. 0. 0. ]\n", 180 | " [21. 0. 0. 0. 0. 0. 0. ]\n", 181 | " [ 0. 0. 0. 0. 0. 1. 0. ]]\n", 182 | "------------------------------------------------------------------\n", 183 | "对测试集所有数据的预测结果\n", 184 | "[0, 0, 3, 0, 3, 1, 1, 0, 0, 0, 0, 3, 0, 5, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 3, 0, 1, 3, 0, 1, 0, 5]\n", 185 | "==================================================================\n", 186 | "第3次迭代测试:\n", 187 | "正确率: 93.94 %\n", 188 | "对测试集所有数据的测试结果\n", 189 | "[[40. 0. 0. 0. 0. 0. 0. ]\n", 190 | " [ 0. 0. 0. 16. 0. 0. 0. ]\n", 191 | " [40. 0. 0. 0. 0. 0. 0. ]\n", 192 | " [40. 0. 0. 0. 0. 0. 0. ]\n", 193 | " [ 0. 0. 0. 16. 0. 0. 0. ]\n", 194 | " [ 0. 0. 0. 0. 0. 0. 9. ]\n", 195 | " [ 0. 10. 0. 0. 0. 0. 0. ]\n", 196 | " [40. 0. 0. 0. 0. 0. 0. ]\n", 197 | " [18. 0. 0. 0. 0. 0. 0. ]\n", 198 | " [ 0. 12. 0. 0. 0. 0. 0. ]\n", 199 | " [ 0. 0. 0. 0. 0. 6. 0. ]\n", 200 | " [ 0. 0. 0. 0. 3. 0. 0. ]\n", 201 | " [40. 0. 0. 0. 0. 0. 0. ]\n", 202 | " [ 0. 0. 0. 0. 0. 1. 0. ]\n", 203 | " [ 0. 8. 0. 0. 0. 0. 0. ]\n", 204 | " [ 0. 0. 0. 0. 0. 4. 0. ]\n", 205 | " [ 0. 0. 0. 0. 0. 0. 9. ]\n", 206 | " [40. 0. 0. 0. 0. 0. 0. ]\n", 207 | " [ 0. 0. 0. 0. 5. 0. 0. ]\n", 208 | " [ 0. 0. 0. 0. 0. 0. 7. ]\n", 209 | " [ 0. 12. 0. 0. 0. 0. 0. ]\n", 210 | " [ 0. 9. 0. 0. 0. 0. 0. ]\n", 211 | " [ 0. 0. 0. 16. 0. 0. 0. ]\n", 212 | " [ 0. 0. 0. 16. 0. 0. 0. ]\n", 213 | " [20. 0. 0. 0. 0. 0. 0. ]\n", 214 | " [ 0. 0. 0. 0. 0. 0. 9. ]\n", 215 | " [ 0. 0. 3. 0. 0. 0. 0. ]\n", 216 | " [ 0. 9. 0. 0. 0. 0. 0. ]\n", 217 | " [ 0. 0. 0. 0. 0. 6. 0. ]\n", 218 | " [ 0. 0. 0. 0. 3. 0. 0. ]\n", 219 | " [25.74 30.31 2.61 3.11 2.22 5.77 3.89]\n", 220 | " [ 8. 0. 3. 0. 1. 0. 0. ]\n", 221 | " [40. 0. 0. 0. 0. 0. 0. ]]\n", 222 | "------------------------------------------------------------------\n", 223 | "对测试集所有数据的预测结果\n", 224 | "[0, 3, 0, 0, 3, 6, 1, 0, 0, 1, 5, 4, 0, 5, 1, 5, 6, 0, 4, 6, 1, 1, 3, 3, 0, 6, 2, 1, 5, 4, 1, 0, 0]\n", 225 | "==================================================================\n" 226 | ] 227 | } 228 | ], 229 | "source": [ 230 | "lter = 1\n", 231 | "kf = KFold(n_splits,shuffle=True)\n", 232 | "for train_index,test_index in kf.split(raw_dataset):\n", 233 | " train_data = np.zeros([1,n])\n", 234 | " test_data = np.zeros([1,n])\n", 235 | " for i in train_index:\n", 236 | " row_temp = np.empty([1,n])\n", 237 | " for j in range(n):\n", 238 | " row_temp[0][j] = raw_dataset[i][j]\n", 239 | " train_data = np.append(train_data, row_temp, axis = 0)\n", 240 | " train_data = np.delete(train_data,0,axis = 0)\n", 241 | " # print(train_data)\n", 242 | " train_data_nontag = train_data[...,0:n-1]\n", 243 | " train_tag = train_data[...,n-1]\n", 244 | " tm = train_tag.size\n", 245 | " train_tag = train_tag.reshape(tm,1)\n", 246 | " # print(train_tag)\n", 247 | " min_max_scaler = preprocessing.MinMaxScaler().fit(raw_dataset[...,0:n-1])\n", 248 | " train_minmax = min_max_scaler.transform(train_data_nontag)\n", 249 | " train_minmax = np.concatenate((train_minmax,train_tag), axis=1)\n", 250 | " # print(train_minmax)\n", 251 | " np.savetxt(train_minmax_path, train_minmax, delimiter=',')\n", 252 | " train_process = DataTrain(lter,classes,train_minmax_path)\n", 253 | " train_process.start_train()\n", 254 | " # ------------------------------------------------------------------\n", 255 | " for i in test_index:\n", 256 | " row_temp = np.empty([1,n])\n", 257 | " for j in range(n):\n", 258 | " row_temp[0][j] = raw_dataset[i][j]\n", 259 | " test_data = np.append(test_data, row_temp, axis = 0)\n", 260 | " test_data = np.delete(test_data,0,axis = 0)\n", 261 | " # print(test_data)\n", 262 | " test_data_nontag = test_data[...,0:n-1]\n", 263 | " test_tag = test_data[...,n-1]\n", 264 | " tem = test_tag.size\n", 265 | " test_tag = test_tag.reshape(tem,1)\n", 266 | " # print(test_tag)\n", 267 | " test_minmax = min_max_scaler.transform(test_data_nontag)\n", 268 | " test_minmax = np.concatenate((test_minmax,test_tag), axis=1)\n", 269 | " # print(test_minmax)\n", 270 | " print('第' + str(lter) + '次迭代测试:')\n", 271 | " np.savetxt(test_minmax_path, test_minmax, delimiter=',')\n", 272 | " test_process = DataTest(classes,test_minmax_path,full_result_path)\n", 273 | " test_process.start_test()\n", 274 | " # ------------------------------------------------------------------\n", 275 | " # 合并结果\n", 276 | " present_result_path = ROOT_DIR + r'\\result\\result' + str(lter) + '.json'\n", 277 | " with open(present_result_path, 'r') as f_present_result:\n", 278 | " present_result = json.load(f_present_result)\n", 279 | " with open(full_result_path, 'r') as f_full_result:\n", 280 | " full_result = json.load(f_full_result)\n", 281 | " for cla in range(classes):\n", 282 | " full_result[str(int(cla))].extend(present_result[str(int(cla))])\n", 283 | " with open(full_result_path, 'w') as f_full_result:\n", 284 | " json.dump(full_result,f_full_result)\n", 285 | " # ------------------------------------------------------------------\n", 286 | " del train_process\n", 287 | " lter = lter + 1" 288 | ] 289 | } 290 | ], 291 | "metadata": { 292 | "kernelspec": { 293 | "display_name": "Python 3", 294 | "language": "python", 295 | "name": "python3" 296 | }, 297 | "language_info": { 298 | "codemirror_mode": { 299 | "name": "ipython", 300 | "version": 3 301 | }, 302 | "file_extension": ".py", 303 | "mimetype": "text/x-python", 304 | "name": "python", 305 | "nbconvert_exporter": "python", 306 | "pygments_lexer": "ipython3", 307 | "version": "3.7.3" 308 | } 309 | }, 310 | "nbformat": 4, 311 | "nbformat_minor": 2 312 | } 313 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # constructive-covering-algorithm-implemented-in-Python 2 | Python实现的构造性覆盖算法 3 | ---------- 4 | ##### 目录文件说明: 5 | - load\_\* _加载不同的数据集,提供jupyter notebook 和 python格式文件_ 6 | - data_set _存放数据集(UCI)_ 7 | - data_transformed _存放统一格式转化后的数据集,最后一列为标签,其余列为属性_ 8 | - minmax_out _存放归一化后的数据,分为训练集和测试集_ 9 | - mod _为训练和测试编写的相关模块_ 10 | - core.py _对数据进行训练的核心代码_ 11 | - datatest.py _对测试集进行测试,并输出结果_ 12 | - result _存放训练结果_ 13 | - result{num}.json _每次迭代形成的覆盖_ 14 | - full _对每次迭代的覆盖的合并_ 15 | - references _参考文献_ 16 | 17 | > 每次运行时,先加载对应数据集,再运行train.py或train.ipynb即可 18 | 19 | 20 | 21 | | 样本集 | 覆盖数 | 平均正确率 | 22 | | :-----: | :----: | :--------: | 23 | | Iris | 119 | 96.40% | 24 | | wine | 50 | 71.88% | 25 | | zoo | 151 | 96.97% | 26 | | soybean-small | 70 | 99.96% | -------------------------------------------------------------------------------- /__pycache__/core.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/__pycache__/core.cpython-37.pyc -------------------------------------------------------------------------------- /__pycache__/test.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/__pycache__/test.cpython-37.pyc -------------------------------------------------------------------------------- /data_set/iris.data: -------------------------------------------------------------------------------- 1 | 5.1,3.5,1.4,0.2,Iris-setosa 2 | 4.9,3.0,1.4,0.2,Iris-setosa 3 | 4.7,3.2,1.3,0.2,Iris-setosa 4 | 4.6,3.1,1.5,0.2,Iris-setosa 5 | 5.0,3.6,1.4,0.2,Iris-setosa 6 | 5.4,3.9,1.7,0.4,Iris-setosa 7 | 4.6,3.4,1.4,0.3,Iris-setosa 8 | 5.0,3.4,1.5,0.2,Iris-setosa 9 | 4.4,2.9,1.4,0.2,Iris-setosa 10 | 4.9,3.1,1.5,0.1,Iris-setosa 11 | 5.4,3.7,1.5,0.2,Iris-setosa 12 | 4.8,3.4,1.6,0.2,Iris-setosa 13 | 4.8,3.0,1.4,0.1,Iris-setosa 14 | 4.3,3.0,1.1,0.1,Iris-setosa 15 | 5.8,4.0,1.2,0.2,Iris-setosa 16 | 5.7,4.4,1.5,0.4,Iris-setosa 17 | 5.4,3.9,1.3,0.4,Iris-setosa 18 | 5.1,3.5,1.4,0.3,Iris-setosa 19 | 5.7,3.8,1.7,0.3,Iris-setosa 20 | 5.1,3.8,1.5,0.3,Iris-setosa 21 | 5.4,3.4,1.7,0.2,Iris-setosa 22 | 5.1,3.7,1.5,0.4,Iris-setosa 23 | 4.6,3.6,1.0,0.2,Iris-setosa 24 | 5.1,3.3,1.7,0.5,Iris-setosa 25 | 4.8,3.4,1.9,0.2,Iris-setosa 26 | 5.0,3.0,1.6,0.2,Iris-setosa 27 | 5.0,3.4,1.6,0.4,Iris-setosa 28 | 5.2,3.5,1.5,0.2,Iris-setosa 29 | 5.2,3.4,1.4,0.2,Iris-setosa 30 | 4.7,3.2,1.6,0.2,Iris-setosa 31 | 4.8,3.1,1.6,0.2,Iris-setosa 32 | 5.4,3.4,1.5,0.4,Iris-setosa 33 | 5.2,4.1,1.5,0.1,Iris-setosa 34 | 5.5,4.2,1.4,0.2,Iris-setosa 35 | 4.9,3.1,1.5,0.1,Iris-setosa 36 | 5.0,3.2,1.2,0.2,Iris-setosa 37 | 5.5,3.5,1.3,0.2,Iris-setosa 38 | 4.9,3.1,1.5,0.1,Iris-setosa 39 | 4.4,3.0,1.3,0.2,Iris-setosa 40 | 5.1,3.4,1.5,0.2,Iris-setosa 41 | 5.0,3.5,1.3,0.3,Iris-setosa 42 | 4.5,2.3,1.3,0.3,Iris-setosa 43 | 4.4,3.2,1.3,0.2,Iris-setosa 44 | 5.0,3.5,1.6,0.6,Iris-setosa 45 | 5.1,3.8,1.9,0.4,Iris-setosa 46 | 4.8,3.0,1.4,0.3,Iris-setosa 47 | 5.1,3.8,1.6,0.2,Iris-setosa 48 | 4.6,3.2,1.4,0.2,Iris-setosa 49 | 5.3,3.7,1.5,0.2,Iris-setosa 50 | 5.0,3.3,1.4,0.2,Iris-setosa 51 | 7.0,3.2,4.7,1.4,Iris-versicolor 52 | 6.4,3.2,4.5,1.5,Iris-versicolor 53 | 6.9,3.1,4.9,1.5,Iris-versicolor 54 | 5.5,2.3,4.0,1.3,Iris-versicolor 55 | 6.5,2.8,4.6,1.5,Iris-versicolor 56 | 5.7,2.8,4.5,1.3,Iris-versicolor 57 | 6.3,3.3,4.7,1.6,Iris-versicolor 58 | 4.9,2.4,3.3,1.0,Iris-versicolor 59 | 6.6,2.9,4.6,1.3,Iris-versicolor 60 | 5.2,2.7,3.9,1.4,Iris-versicolor 61 | 5.0,2.0,3.5,1.0,Iris-versicolor 62 | 5.9,3.0,4.2,1.5,Iris-versicolor 63 | 6.0,2.2,4.0,1.0,Iris-versicolor 64 | 6.1,2.9,4.7,1.4,Iris-versicolor 65 | 5.6,2.9,3.6,1.3,Iris-versicolor 66 | 6.7,3.1,4.4,1.4,Iris-versicolor 67 | 5.6,3.0,4.5,1.5,Iris-versicolor 68 | 5.8,2.7,4.1,1.0,Iris-versicolor 69 | 6.2,2.2,4.5,1.5,Iris-versicolor 70 | 5.6,2.5,3.9,1.1,Iris-versicolor 71 | 5.9,3.2,4.8,1.8,Iris-versicolor 72 | 6.1,2.8,4.0,1.3,Iris-versicolor 73 | 6.3,2.5,4.9,1.5,Iris-versicolor 74 | 6.1,2.8,4.7,1.2,Iris-versicolor 75 | 6.4,2.9,4.3,1.3,Iris-versicolor 76 | 6.6,3.0,4.4,1.4,Iris-versicolor 77 | 6.8,2.8,4.8,1.4,Iris-versicolor 78 | 6.7,3.0,5.0,1.7,Iris-versicolor 79 | 6.0,2.9,4.5,1.5,Iris-versicolor 80 | 5.7,2.6,3.5,1.0,Iris-versicolor 81 | 5.5,2.4,3.8,1.1,Iris-versicolor 82 | 5.5,2.4,3.7,1.0,Iris-versicolor 83 | 5.8,2.7,3.9,1.2,Iris-versicolor 84 | 6.0,2.7,5.1,1.6,Iris-versicolor 85 | 5.4,3.0,4.5,1.5,Iris-versicolor 86 | 6.0,3.4,4.5,1.6,Iris-versicolor 87 | 6.7,3.1,4.7,1.5,Iris-versicolor 88 | 6.3,2.3,4.4,1.3,Iris-versicolor 89 | 5.6,3.0,4.1,1.3,Iris-versicolor 90 | 5.5,2.5,4.0,1.3,Iris-versicolor 91 | 5.5,2.6,4.4,1.2,Iris-versicolor 92 | 6.1,3.0,4.6,1.4,Iris-versicolor 93 | 5.8,2.6,4.0,1.2,Iris-versicolor 94 | 5.0,2.3,3.3,1.0,Iris-versicolor 95 | 5.6,2.7,4.2,1.3,Iris-versicolor 96 | 5.7,3.0,4.2,1.2,Iris-versicolor 97 | 5.7,2.9,4.2,1.3,Iris-versicolor 98 | 6.2,2.9,4.3,1.3,Iris-versicolor 99 | 5.1,2.5,3.0,1.1,Iris-versicolor 100 | 5.7,2.8,4.1,1.3,Iris-versicolor 101 | 6.3,3.3,6.0,2.5,Iris-virginica 102 | 5.8,2.7,5.1,1.9,Iris-virginica 103 | 7.1,3.0,5.9,2.1,Iris-virginica 104 | 6.3,2.9,5.6,1.8,Iris-virginica 105 | 6.5,3.0,5.8,2.2,Iris-virginica 106 | 7.6,3.0,6.6,2.1,Iris-virginica 107 | 4.9,2.5,4.5,1.7,Iris-virginica 108 | 7.3,2.9,6.3,1.8,Iris-virginica 109 | 6.7,2.5,5.8,1.8,Iris-virginica 110 | 7.2,3.6,6.1,2.5,Iris-virginica 111 | 6.5,3.2,5.1,2.0,Iris-virginica 112 | 6.4,2.7,5.3,1.9,Iris-virginica 113 | 6.8,3.0,5.5,2.1,Iris-virginica 114 | 5.7,2.5,5.0,2.0,Iris-virginica 115 | 5.8,2.8,5.1,2.4,Iris-virginica 116 | 6.4,3.2,5.3,2.3,Iris-virginica 117 | 6.5,3.0,5.5,1.8,Iris-virginica 118 | 7.7,3.8,6.7,2.2,Iris-virginica 119 | 7.7,2.6,6.9,2.3,Iris-virginica 120 | 6.0,2.2,5.0,1.5,Iris-virginica 121 | 6.9,3.2,5.7,2.3,Iris-virginica 122 | 5.6,2.8,4.9,2.0,Iris-virginica 123 | 7.7,2.8,6.7,2.0,Iris-virginica 124 | 6.3,2.7,4.9,1.8,Iris-virginica 125 | 6.7,3.3,5.7,2.1,Iris-virginica 126 | 7.2,3.2,6.0,1.8,Iris-virginica 127 | 6.2,2.8,4.8,1.8,Iris-virginica 128 | 6.1,3.0,4.9,1.8,Iris-virginica 129 | 6.4,2.8,5.6,2.1,Iris-virginica 130 | 7.2,3.0,5.8,1.6,Iris-virginica 131 | 7.4,2.8,6.1,1.9,Iris-virginica 132 | 7.9,3.8,6.4,2.0,Iris-virginica 133 | 6.4,2.8,5.6,2.2,Iris-virginica 134 | 6.3,2.8,5.1,1.5,Iris-virginica 135 | 6.1,2.6,5.6,1.4,Iris-virginica 136 | 7.7,3.0,6.1,2.3,Iris-virginica 137 | 6.3,3.4,5.6,2.4,Iris-virginica 138 | 6.4,3.1,5.5,1.8,Iris-virginica 139 | 6.0,3.0,4.8,1.8,Iris-virginica 140 | 6.9,3.1,5.4,2.1,Iris-virginica 141 | 6.7,3.1,5.6,2.4,Iris-virginica 142 | 6.9,3.1,5.1,2.3,Iris-virginica 143 | 5.8,2.7,5.1,1.9,Iris-virginica 144 | 6.8,3.2,5.9,2.3,Iris-virginica 145 | 6.7,3.3,5.7,2.5,Iris-virginica 146 | 6.7,3.0,5.2,2.3,Iris-virginica 147 | 6.3,2.5,5.0,1.9,Iris-virginica 148 | 6.5,3.0,5.2,2.0,Iris-virginica 149 | 6.2,3.4,5.4,2.3,Iris-virginica 150 | 5.9,3.0,5.1,1.8,Iris-virginica 151 | 152 | -------------------------------------------------------------------------------- /data_set/soybean-small.data: -------------------------------------------------------------------------------- 1 | 4,0,2,1,1,1,0,1,0,2,1,1,0,2,2,0,0,0,1,0,3,1,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 2 | 5,0,2,1,0,3,1,1,1,2,1,1,0,2,2,0,0,0,1,1,3,0,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 3 | 3,0,2,1,0,2,0,2,1,1,1,1,0,2,2,0,0,0,1,0,3,0,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 4 | 6,0,2,1,0,1,1,1,0,0,1,1,0,2,2,0,0,0,1,1,3,1,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 5 | 4,0,2,1,0,3,0,2,0,2,1,1,0,2,2,0,0,0,1,0,3,1,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 6 | 5,0,2,1,0,2,0,1,1,0,1,1,0,2,2,0,0,0,1,1,3,1,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 7 | 3,0,2,1,0,2,1,1,0,1,1,1,0,2,2,0,0,0,1,1,3,0,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 8 | 3,0,2,1,0,1,0,2,1,2,1,1,0,2,2,0,0,0,1,0,3,0,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 9 | 6,0,2,1,0,3,0,1,1,1,1,1,0,2,2,0,0,0,1,0,3,1,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 10 | 6,0,2,1,0,1,0,1,0,2,1,1,0,2,2,0,0,0,1,0,3,1,1,1,0,0,0,0,4,0,0,0,0,0,0,D1 11 | 6,0,0,2,1,0,2,1,0,0,1,1,0,2,2,0,0,0,1,1,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 12 | 4,0,0,1,0,2,3,1,1,1,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 13 | 5,0,0,2,0,3,2,1,0,2,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 14 | 6,0,0,1,1,3,3,1,1,0,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 15 | 3,0,0,2,1,0,2,1,0,1,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 16 | 4,0,0,1,1,1,3,1,1,1,1,1,0,2,2,0,0,0,1,1,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 17 | 3,0,0,1,0,1,2,1,0,0,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 18 | 5,0,0,2,1,2,2,1,0,2,1,1,0,2,2,0,0,0,1,1,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 19 | 6,0,0,2,0,1,3,1,1,0,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 20 | 5,0,0,2,1,3,3,1,1,2,1,1,0,2,2,0,0,0,1,0,0,3,0,0,0,2,1,0,4,0,0,0,0,0,0,D2 21 | 0,1,2,0,0,1,1,1,1,1,1,0,0,2,2,0,0,0,1,0,1,1,0,1,1,0,0,3,4,0,0,0,0,0,0,D3 22 | 2,1,2,0,0,3,1,2,0,1,1,0,0,2,2,0,0,0,1,0,1,1,0,1,0,0,0,3,4,0,0,0,0,0,0,D3 23 | 2,1,2,0,0,2,1,1,0,2,1,0,0,2,2,0,0,0,1,0,1,1,0,1,1,0,0,3,4,0,0,0,0,0,0,D3 24 | 0,1,2,0,0,0,1,1,1,2,1,0,0,2,2,0,0,0,1,0,1,1,0,1,0,0,0,3,4,0,0,0,0,0,0,D3 25 | 0,1,2,0,0,2,1,1,1,1,1,0,0,2,2,0,0,0,1,0,1,1,0,1,0,0,0,3,4,0,0,0,0,0,0,D3 26 | 4,0,2,0,1,0,1,2,0,2,1,1,0,2,2,0,0,0,1,1,1,1,0,1,1,0,0,3,4,0,0,0,0,0,0,D3 27 | 2,1,2,0,0,3,1,2,0,2,1,0,0,2,2,0,0,0,1,0,1,1,0,1,1,0,0,3,4,0,0,0,0,0,0,D3 28 | 0,1,2,0,0,0,1,1,0,1,1,0,0,2,2,0,0,0,1,0,1,1,0,1,0,0,0,3,4,0,0,0,0,0,1,D3 29 | 3,0,2,0,1,3,1,2,0,1,1,0,0,2,2,0,0,0,1,1,1,1,0,1,1,0,0,3,4,0,0,0,0,0,0,D3 30 | 0,1,2,0,0,1,1,2,1,2,1,0,0,2,2,0,0,0,1,0,1,1,0,1,0,0,0,3,4,0,0,0,0,0,0,D3 31 | 2,1,2,1,1,3,1,2,1,2,1,1,0,2,2,0,0,0,1,0,2,2,0,1,0,0,0,3,4,0,0,0,0,0,1,D4 32 | 0,1,1,1,0,1,1,1,0,0,1,1,0,2,2,0,0,0,1,0,1,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 33 | 3,1,2,0,0,1,1,2,1,0,1,1,0,2,2,0,0,0,1,0,2,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 34 | 2,1,2,1,1,1,1,2,0,2,1,1,0,2,2,0,0,0,1,0,1,2,0,1,0,0,0,3,4,0,0,0,0,0,1,D4 35 | 1,1,2,0,0,3,1,1,1,2,1,1,0,2,2,0,0,0,1,0,2,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 36 | 1,1,2,1,0,0,1,2,1,1,1,1,0,2,2,0,0,0,1,0,2,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 37 | 0,1,2,1,0,3,1,1,0,0,1,1,0,2,2,0,0,0,1,0,1,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 38 | 2,1,2,0,0,1,1,2,0,0,1,1,0,2,2,0,0,0,1,0,1,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 39 | 3,1,2,0,0,2,1,2,1,1,1,1,0,2,2,0,0,0,1,0,2,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 40 | 3,1,1,0,0,2,1,2,1,2,1,1,0,2,2,0,0,0,1,0,2,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 41 | 0,1,2,1,1,1,1,1,0,0,1,1,0,2,2,0,0,0,1,0,1,2,0,1,0,0,0,3,4,0,0,0,0,0,1,D4 42 | 1,1,2,1,1,3,1,2,0,1,1,1,0,2,2,0,0,0,1,1,1,2,0,1,0,0,0,3,4,0,0,0,0,0,1,D4 43 | 1,1,2,0,0,0,1,2,1,0,1,1,0,2,2,0,0,0,1,0,2,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 44 | 1,1,2,1,1,2,3,1,1,1,1,1,0,2,2,0,0,0,1,0,2,2,0,1,0,0,0,3,4,0,0,0,0,0,1,D4 45 | 2,1,1,0,0,3,1,2,0,2,1,1,0,2,2,0,0,0,1,0,1,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 46 | 0,1,1,1,1,2,1,2,1,0,1,1,0,2,2,0,0,0,1,1,2,2,0,1,0,0,0,3,4,0,0,0,0,0,1,D4 47 | 0,1,2,1,0,3,1,1,0,2,1,1,0,2,2,0,0,0,1,0,1,2,0,0,0,0,0,3,4,0,0,0,0,0,1,D4 48 | -------------------------------------------------------------------------------- /data_set/wine.data: -------------------------------------------------------------------------------- 1 | 1,14.23,1.71,2.43,15.6,127,2.8,3.06,.28,2.29,5.64,1.04,3.92,1065 2 | 1,13.2,1.78,2.14,11.2,100,2.65,2.76,.26,1.28,4.38,1.05,3.4,1050 3 | 1,13.16,2.36,2.67,18.6,101,2.8,3.24,.3,2.81,5.68,1.03,3.17,1185 4 | 1,14.37,1.95,2.5,16.8,113,3.85,3.49,.24,2.18,7.8,.86,3.45,1480 5 | 1,13.24,2.59,2.87,21,118,2.8,2.69,.39,1.82,4.32,1.04,2.93,735 6 | 1,14.2,1.76,2.45,15.2,112,3.27,3.39,.34,1.97,6.75,1.05,2.85,1450 7 | 1,14.39,1.87,2.45,14.6,96,2.5,2.52,.3,1.98,5.25,1.02,3.58,1290 8 | 1,14.06,2.15,2.61,17.6,121,2.6,2.51,.31,1.25,5.05,1.06,3.58,1295 9 | 1,14.83,1.64,2.17,14,97,2.8,2.98,.29,1.98,5.2,1.08,2.85,1045 10 | 1,13.86,1.35,2.27,16,98,2.98,3.15,.22,1.85,7.22,1.01,3.55,1045 11 | 1,14.1,2.16,2.3,18,105,2.95,3.32,.22,2.38,5.75,1.25,3.17,1510 12 | 1,14.12,1.48,2.32,16.8,95,2.2,2.43,.26,1.57,5,1.17,2.82,1280 13 | 1,13.75,1.73,2.41,16,89,2.6,2.76,.29,1.81,5.6,1.15,2.9,1320 14 | 1,14.75,1.73,2.39,11.4,91,3.1,3.69,.43,2.81,5.4,1.25,2.73,1150 15 | 1,14.38,1.87,2.38,12,102,3.3,3.64,.29,2.96,7.5,1.2,3,1547 16 | 1,13.63,1.81,2.7,17.2,112,2.85,2.91,.3,1.46,7.3,1.28,2.88,1310 17 | 1,14.3,1.92,2.72,20,120,2.8,3.14,.33,1.97,6.2,1.07,2.65,1280 18 | 1,13.83,1.57,2.62,20,115,2.95,3.4,.4,1.72,6.6,1.13,2.57,1130 19 | 1,14.19,1.59,2.48,16.5,108,3.3,3.93,.32,1.86,8.7,1.23,2.82,1680 20 | 1,13.64,3.1,2.56,15.2,116,2.7,3.03,.17,1.66,5.1,.96,3.36,845 21 | 1,14.06,1.63,2.28,16,126,3,3.17,.24,2.1,5.65,1.09,3.71,780 22 | 1,12.93,3.8,2.65,18.6,102,2.41,2.41,.25,1.98,4.5,1.03,3.52,770 23 | 1,13.71,1.86,2.36,16.6,101,2.61,2.88,.27,1.69,3.8,1.11,4,1035 24 | 1,12.85,1.6,2.52,17.8,95,2.48,2.37,.26,1.46,3.93,1.09,3.63,1015 25 | 1,13.5,1.81,2.61,20,96,2.53,2.61,.28,1.66,3.52,1.12,3.82,845 26 | 1,13.05,2.05,3.22,25,124,2.63,2.68,.47,1.92,3.58,1.13,3.2,830 27 | 1,13.39,1.77,2.62,16.1,93,2.85,2.94,.34,1.45,4.8,.92,3.22,1195 28 | 1,13.3,1.72,2.14,17,94,2.4,2.19,.27,1.35,3.95,1.02,2.77,1285 29 | 1,13.87,1.9,2.8,19.4,107,2.95,2.97,.37,1.76,4.5,1.25,3.4,915 30 | 1,14.02,1.68,2.21,16,96,2.65,2.33,.26,1.98,4.7,1.04,3.59,1035 31 | 1,13.73,1.5,2.7,22.5,101,3,3.25,.29,2.38,5.7,1.19,2.71,1285 32 | 1,13.58,1.66,2.36,19.1,106,2.86,3.19,.22,1.95,6.9,1.09,2.88,1515 33 | 1,13.68,1.83,2.36,17.2,104,2.42,2.69,.42,1.97,3.84,1.23,2.87,990 34 | 1,13.76,1.53,2.7,19.5,132,2.95,2.74,.5,1.35,5.4,1.25,3,1235 35 | 1,13.51,1.8,2.65,19,110,2.35,2.53,.29,1.54,4.2,1.1,2.87,1095 36 | 1,13.48,1.81,2.41,20.5,100,2.7,2.98,.26,1.86,5.1,1.04,3.47,920 37 | 1,13.28,1.64,2.84,15.5,110,2.6,2.68,.34,1.36,4.6,1.09,2.78,880 38 | 1,13.05,1.65,2.55,18,98,2.45,2.43,.29,1.44,4.25,1.12,2.51,1105 39 | 1,13.07,1.5,2.1,15.5,98,2.4,2.64,.28,1.37,3.7,1.18,2.69,1020 40 | 1,14.22,3.99,2.51,13.2,128,3,3.04,.2,2.08,5.1,.89,3.53,760 41 | 1,13.56,1.71,2.31,16.2,117,3.15,3.29,.34,2.34,6.13,.95,3.38,795 42 | 1,13.41,3.84,2.12,18.8,90,2.45,2.68,.27,1.48,4.28,.91,3,1035 43 | 1,13.88,1.89,2.59,15,101,3.25,3.56,.17,1.7,5.43,.88,3.56,1095 44 | 1,13.24,3.98,2.29,17.5,103,2.64,2.63,.32,1.66,4.36,.82,3,680 45 | 1,13.05,1.77,2.1,17,107,3,3,.28,2.03,5.04,.88,3.35,885 46 | 1,14.21,4.04,2.44,18.9,111,2.85,2.65,.3,1.25,5.24,.87,3.33,1080 47 | 1,14.38,3.59,2.28,16,102,3.25,3.17,.27,2.19,4.9,1.04,3.44,1065 48 | 1,13.9,1.68,2.12,16,101,3.1,3.39,.21,2.14,6.1,.91,3.33,985 49 | 1,14.1,2.02,2.4,18.8,103,2.75,2.92,.32,2.38,6.2,1.07,2.75,1060 50 | 1,13.94,1.73,2.27,17.4,108,2.88,3.54,.32,2.08,8.90,1.12,3.1,1260 51 | 1,13.05,1.73,2.04,12.4,92,2.72,3.27,.17,2.91,7.2,1.12,2.91,1150 52 | 1,13.83,1.65,2.6,17.2,94,2.45,2.99,.22,2.29,5.6,1.24,3.37,1265 53 | 1,13.82,1.75,2.42,14,111,3.88,3.74,.32,1.87,7.05,1.01,3.26,1190 54 | 1,13.77,1.9,2.68,17.1,115,3,2.79,.39,1.68,6.3,1.13,2.93,1375 55 | 1,13.74,1.67,2.25,16.4,118,2.6,2.9,.21,1.62,5.85,.92,3.2,1060 56 | 1,13.56,1.73,2.46,20.5,116,2.96,2.78,.2,2.45,6.25,.98,3.03,1120 57 | 1,14.22,1.7,2.3,16.3,118,3.2,3,.26,2.03,6.38,.94,3.31,970 58 | 1,13.29,1.97,2.68,16.8,102,3,3.23,.31,1.66,6,1.07,2.84,1270 59 | 1,13.72,1.43,2.5,16.7,108,3.4,3.67,.19,2.04,6.8,.89,2.87,1285 60 | 2,12.37,.94,1.36,10.6,88,1.98,.57,.28,.42,1.95,1.05,1.82,520 61 | 2,12.33,1.1,2.28,16,101,2.05,1.09,.63,.41,3.27,1.25,1.67,680 62 | 2,12.64,1.36,2.02,16.8,100,2.02,1.41,.53,.62,5.75,.98,1.59,450 63 | 2,13.67,1.25,1.92,18,94,2.1,1.79,.32,.73,3.8,1.23,2.46,630 64 | 2,12.37,1.13,2.16,19,87,3.5,3.1,.19,1.87,4.45,1.22,2.87,420 65 | 2,12.17,1.45,2.53,19,104,1.89,1.75,.45,1.03,2.95,1.45,2.23,355 66 | 2,12.37,1.21,2.56,18.1,98,2.42,2.65,.37,2.08,4.6,1.19,2.3,678 67 | 2,13.11,1.01,1.7,15,78,2.98,3.18,.26,2.28,5.3,1.12,3.18,502 68 | 2,12.37,1.17,1.92,19.6,78,2.11,2,.27,1.04,4.68,1.12,3.48,510 69 | 2,13.34,.94,2.36,17,110,2.53,1.3,.55,.42,3.17,1.02,1.93,750 70 | 2,12.21,1.19,1.75,16.8,151,1.85,1.28,.14,2.5,2.85,1.28,3.07,718 71 | 2,12.29,1.61,2.21,20.4,103,1.1,1.02,.37,1.46,3.05,.906,1.82,870 72 | 2,13.86,1.51,2.67,25,86,2.95,2.86,.21,1.87,3.38,1.36,3.16,410 73 | 2,13.49,1.66,2.24,24,87,1.88,1.84,.27,1.03,3.74,.98,2.78,472 74 | 2,12.99,1.67,2.6,30,139,3.3,2.89,.21,1.96,3.35,1.31,3.5,985 75 | 2,11.96,1.09,2.3,21,101,3.38,2.14,.13,1.65,3.21,.99,3.13,886 76 | 2,11.66,1.88,1.92,16,97,1.61,1.57,.34,1.15,3.8,1.23,2.14,428 77 | 2,13.03,.9,1.71,16,86,1.95,2.03,.24,1.46,4.6,1.19,2.48,392 78 | 2,11.84,2.89,2.23,18,112,1.72,1.32,.43,.95,2.65,.96,2.52,500 79 | 2,12.33,.99,1.95,14.8,136,1.9,1.85,.35,2.76,3.4,1.06,2.31,750 80 | 2,12.7,3.87,2.4,23,101,2.83,2.55,.43,1.95,2.57,1.19,3.13,463 81 | 2,12,.92,2,19,86,2.42,2.26,.3,1.43,2.5,1.38,3.12,278 82 | 2,12.72,1.81,2.2,18.8,86,2.2,2.53,.26,1.77,3.9,1.16,3.14,714 83 | 2,12.08,1.13,2.51,24,78,2,1.58,.4,1.4,2.2,1.31,2.72,630 84 | 2,13.05,3.86,2.32,22.5,85,1.65,1.59,.61,1.62,4.8,.84,2.01,515 85 | 2,11.84,.89,2.58,18,94,2.2,2.21,.22,2.35,3.05,.79,3.08,520 86 | 2,12.67,.98,2.24,18,99,2.2,1.94,.3,1.46,2.62,1.23,3.16,450 87 | 2,12.16,1.61,2.31,22.8,90,1.78,1.69,.43,1.56,2.45,1.33,2.26,495 88 | 2,11.65,1.67,2.62,26,88,1.92,1.61,.4,1.34,2.6,1.36,3.21,562 89 | 2,11.64,2.06,2.46,21.6,84,1.95,1.69,.48,1.35,2.8,1,2.75,680 90 | 2,12.08,1.33,2.3,23.6,70,2.2,1.59,.42,1.38,1.74,1.07,3.21,625 91 | 2,12.08,1.83,2.32,18.5,81,1.6,1.5,.52,1.64,2.4,1.08,2.27,480 92 | 2,12,1.51,2.42,22,86,1.45,1.25,.5,1.63,3.6,1.05,2.65,450 93 | 2,12.69,1.53,2.26,20.7,80,1.38,1.46,.58,1.62,3.05,.96,2.06,495 94 | 2,12.29,2.83,2.22,18,88,2.45,2.25,.25,1.99,2.15,1.15,3.3,290 95 | 2,11.62,1.99,2.28,18,98,3.02,2.26,.17,1.35,3.25,1.16,2.96,345 96 | 2,12.47,1.52,2.2,19,162,2.5,2.27,.32,3.28,2.6,1.16,2.63,937 97 | 2,11.81,2.12,2.74,21.5,134,1.6,.99,.14,1.56,2.5,.95,2.26,625 98 | 2,12.29,1.41,1.98,16,85,2.55,2.5,.29,1.77,2.9,1.23,2.74,428 99 | 2,12.37,1.07,2.1,18.5,88,3.52,3.75,.24,1.95,4.5,1.04,2.77,660 100 | 2,12.29,3.17,2.21,18,88,2.85,2.99,.45,2.81,2.3,1.42,2.83,406 101 | 2,12.08,2.08,1.7,17.5,97,2.23,2.17,.26,1.4,3.3,1.27,2.96,710 102 | 2,12.6,1.34,1.9,18.5,88,1.45,1.36,.29,1.35,2.45,1.04,2.77,562 103 | 2,12.34,2.45,2.46,21,98,2.56,2.11,.34,1.31,2.8,.8,3.38,438 104 | 2,11.82,1.72,1.88,19.5,86,2.5,1.64,.37,1.42,2.06,.94,2.44,415 105 | 2,12.51,1.73,1.98,20.5,85,2.2,1.92,.32,1.48,2.94,1.04,3.57,672 106 | 2,12.42,2.55,2.27,22,90,1.68,1.84,.66,1.42,2.7,.86,3.3,315 107 | 2,12.25,1.73,2.12,19,80,1.65,2.03,.37,1.63,3.4,1,3.17,510 108 | 2,12.72,1.75,2.28,22.5,84,1.38,1.76,.48,1.63,3.3,.88,2.42,488 109 | 2,12.22,1.29,1.94,19,92,2.36,2.04,.39,2.08,2.7,.86,3.02,312 110 | 2,11.61,1.35,2.7,20,94,2.74,2.92,.29,2.49,2.65,.96,3.26,680 111 | 2,11.46,3.74,1.82,19.5,107,3.18,2.58,.24,3.58,2.9,.75,2.81,562 112 | 2,12.52,2.43,2.17,21,88,2.55,2.27,.26,1.22,2,.9,2.78,325 113 | 2,11.76,2.68,2.92,20,103,1.75,2.03,.6,1.05,3.8,1.23,2.5,607 114 | 2,11.41,.74,2.5,21,88,2.48,2.01,.42,1.44,3.08,1.1,2.31,434 115 | 2,12.08,1.39,2.5,22.5,84,2.56,2.29,.43,1.04,2.9,.93,3.19,385 116 | 2,11.03,1.51,2.2,21.5,85,2.46,2.17,.52,2.01,1.9,1.71,2.87,407 117 | 2,11.82,1.47,1.99,20.8,86,1.98,1.6,.3,1.53,1.95,.95,3.33,495 118 | 2,12.42,1.61,2.19,22.5,108,2,2.09,.34,1.61,2.06,1.06,2.96,345 119 | 2,12.77,3.43,1.98,16,80,1.63,1.25,.43,.83,3.4,.7,2.12,372 120 | 2,12,3.43,2,19,87,2,1.64,.37,1.87,1.28,.93,3.05,564 121 | 2,11.45,2.4,2.42,20,96,2.9,2.79,.32,1.83,3.25,.8,3.39,625 122 | 2,11.56,2.05,3.23,28.5,119,3.18,5.08,.47,1.87,6,.93,3.69,465 123 | 2,12.42,4.43,2.73,26.5,102,2.2,2.13,.43,1.71,2.08,.92,3.12,365 124 | 2,13.05,5.8,2.13,21.5,86,2.62,2.65,.3,2.01,2.6,.73,3.1,380 125 | 2,11.87,4.31,2.39,21,82,2.86,3.03,.21,2.91,2.8,.75,3.64,380 126 | 2,12.07,2.16,2.17,21,85,2.6,2.65,.37,1.35,2.76,.86,3.28,378 127 | 2,12.43,1.53,2.29,21.5,86,2.74,3.15,.39,1.77,3.94,.69,2.84,352 128 | 2,11.79,2.13,2.78,28.5,92,2.13,2.24,.58,1.76,3,.97,2.44,466 129 | 2,12.37,1.63,2.3,24.5,88,2.22,2.45,.4,1.9,2.12,.89,2.78,342 130 | 2,12.04,4.3,2.38,22,80,2.1,1.75,.42,1.35,2.6,.79,2.57,580 131 | 3,12.86,1.35,2.32,18,122,1.51,1.25,.21,.94,4.1,.76,1.29,630 132 | 3,12.88,2.99,2.4,20,104,1.3,1.22,.24,.83,5.4,.74,1.42,530 133 | 3,12.81,2.31,2.4,24,98,1.15,1.09,.27,.83,5.7,.66,1.36,560 134 | 3,12.7,3.55,2.36,21.5,106,1.7,1.2,.17,.84,5,.78,1.29,600 135 | 3,12.51,1.24,2.25,17.5,85,2,.58,.6,1.25,5.45,.75,1.51,650 136 | 3,12.6,2.46,2.2,18.5,94,1.62,.66,.63,.94,7.1,.73,1.58,695 137 | 3,12.25,4.72,2.54,21,89,1.38,.47,.53,.8,3.85,.75,1.27,720 138 | 3,12.53,5.51,2.64,25,96,1.79,.6,.63,1.1,5,.82,1.69,515 139 | 3,13.49,3.59,2.19,19.5,88,1.62,.48,.58,.88,5.7,.81,1.82,580 140 | 3,12.84,2.96,2.61,24,101,2.32,.6,.53,.81,4.92,.89,2.15,590 141 | 3,12.93,2.81,2.7,21,96,1.54,.5,.53,.75,4.6,.77,2.31,600 142 | 3,13.36,2.56,2.35,20,89,1.4,.5,.37,.64,5.6,.7,2.47,780 143 | 3,13.52,3.17,2.72,23.5,97,1.55,.52,.5,.55,4.35,.89,2.06,520 144 | 3,13.62,4.95,2.35,20,92,2,.8,.47,1.02,4.4,.91,2.05,550 145 | 3,12.25,3.88,2.2,18.5,112,1.38,.78,.29,1.14,8.21,.65,2,855 146 | 3,13.16,3.57,2.15,21,102,1.5,.55,.43,1.3,4,.6,1.68,830 147 | 3,13.88,5.04,2.23,20,80,.98,.34,.4,.68,4.9,.58,1.33,415 148 | 3,12.87,4.61,2.48,21.5,86,1.7,.65,.47,.86,7.65,.54,1.86,625 149 | 3,13.32,3.24,2.38,21.5,92,1.93,.76,.45,1.25,8.42,.55,1.62,650 150 | 3,13.08,3.9,2.36,21.5,113,1.41,1.39,.34,1.14,9.40,.57,1.33,550 151 | 3,13.5,3.12,2.62,24,123,1.4,1.57,.22,1.25,8.60,.59,1.3,500 152 | 3,12.79,2.67,2.48,22,112,1.48,1.36,.24,1.26,10.8,.48,1.47,480 153 | 3,13.11,1.9,2.75,25.5,116,2.2,1.28,.26,1.56,7.1,.61,1.33,425 154 | 3,13.23,3.3,2.28,18.5,98,1.8,.83,.61,1.87,10.52,.56,1.51,675 155 | 3,12.58,1.29,2.1,20,103,1.48,.58,.53,1.4,7.6,.58,1.55,640 156 | 3,13.17,5.19,2.32,22,93,1.74,.63,.61,1.55,7.9,.6,1.48,725 157 | 3,13.84,4.12,2.38,19.5,89,1.8,.83,.48,1.56,9.01,.57,1.64,480 158 | 3,12.45,3.03,2.64,27,97,1.9,.58,.63,1.14,7.5,.67,1.73,880 159 | 3,14.34,1.68,2.7,25,98,2.8,1.31,.53,2.7,13,.57,1.96,660 160 | 3,13.48,1.67,2.64,22.5,89,2.6,1.1,.52,2.29,11.75,.57,1.78,620 161 | 3,12.36,3.83,2.38,21,88,2.3,.92,.5,1.04,7.65,.56,1.58,520 162 | 3,13.69,3.26,2.54,20,107,1.83,.56,.5,.8,5.88,.96,1.82,680 163 | 3,12.85,3.27,2.58,22,106,1.65,.6,.6,.96,5.58,.87,2.11,570 164 | 3,12.96,3.45,2.35,18.5,106,1.39,.7,.4,.94,5.28,.68,1.75,675 165 | 3,13.78,2.76,2.3,22,90,1.35,.68,.41,1.03,9.58,.7,1.68,615 166 | 3,13.73,4.36,2.26,22.5,88,1.28,.47,.52,1.15,6.62,.78,1.75,520 167 | 3,13.45,3.7,2.6,23,111,1.7,.92,.43,1.46,10.68,.85,1.56,695 168 | 3,12.82,3.37,2.3,19.5,88,1.48,.66,.4,.97,10.26,.72,1.75,685 169 | 3,13.58,2.58,2.69,24.5,105,1.55,.84,.39,1.54,8.66,.74,1.8,750 170 | 3,13.4,4.6,2.86,25,112,1.98,.96,.27,1.11,8.5,.67,1.92,630 171 | 3,12.2,3.03,2.32,19,96,1.25,.49,.4,.73,5.5,.66,1.83,510 172 | 3,12.77,2.39,2.28,19.5,86,1.39,.51,.48,.64,9.899999,.57,1.63,470 173 | 3,14.16,2.51,2.48,20,91,1.68,.7,.44,1.24,9.7,.62,1.71,660 174 | 3,13.71,5.65,2.45,20.5,95,1.68,.61,.52,1.06,7.7,.64,1.74,740 175 | 3,13.4,3.91,2.48,23,102,1.8,.75,.43,1.41,7.3,.7,1.56,750 176 | 3,13.27,4.28,2.26,20,120,1.59,.69,.43,1.35,10.2,.59,1.56,835 177 | 3,13.17,2.59,2.37,20,120,1.65,.68,.53,1.46,9.3,.6,1.62,840 178 | 3,14.13,4.1,2.74,24.5,96,2.05,.76,.56,1.35,9.2,.61,1.6,560 179 | -------------------------------------------------------------------------------- /data_set/zoo.data: -------------------------------------------------------------------------------- 1 | aardvark,1,0,0,1,0,0,1,1,1,1,0,0,4,0,0,1,1 2 | antelope,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,1 3 | bass,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,4 4 | bear,1,0,0,1,0,0,1,1,1,1,0,0,4,0,0,1,1 5 | boar,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 6 | buffalo,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,1 7 | calf,1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,1 8 | carp,0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,4 9 | catfish,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,4 10 | cavy,1,0,0,1,0,0,0,1,1,1,0,0,4,0,1,0,1 11 | cheetah,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 12 | chicken,0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0,2 13 | chub,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,4 14 | clam,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,7 15 | crab,0,0,1,0,0,1,1,0,0,0,0,0,4,0,0,0,7 16 | crayfish,0,0,1,0,0,1,1,0,0,0,0,0,6,0,0,0,7 17 | crow,0,1,1,0,1,0,1,0,1,1,0,0,2,1,0,0,2 18 | deer,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,1 19 | dogfish,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,4 20 | dolphin,0,0,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1 21 | dove,0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0,2 22 | duck,0,1,1,0,1,1,0,0,1,1,0,0,2,1,0,0,2 23 | elephant,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,1 24 | flamingo,0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,1,2 25 | flea,0,0,1,0,0,0,0,0,0,1,0,0,6,0,0,0,6 26 | frog,0,0,1,0,0,1,1,1,1,1,0,0,4,0,0,0,5 27 | frog,0,0,1,0,0,1,1,1,1,1,1,0,4,0,0,0,5 28 | fruitbat,1,0,0,1,1,0,0,1,1,1,0,0,2,1,0,0,1 29 | giraffe,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,1 30 | girl,1,0,0,1,0,0,1,1,1,1,0,0,2,0,1,1,1 31 | gnat,0,0,1,0,1,0,0,0,0,1,0,0,6,0,0,0,6 32 | goat,1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,1 33 | gorilla,1,0,0,1,0,0,0,1,1,1,0,0,2,0,0,1,1 34 | gull,0,1,1,0,1,1,1,0,1,1,0,0,2,1,0,0,2 35 | haddock,0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,4 36 | hamster,1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,0,1 37 | hare,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,0,1 38 | hawk,0,1,1,0,1,0,1,0,1,1,0,0,2,1,0,0,2 39 | herring,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,4 40 | honeybee,1,0,1,0,1,0,0,0,0,1,1,0,6,0,1,0,6 41 | housefly,1,0,1,0,1,0,0,0,0,1,0,0,6,0,0,0,6 42 | kiwi,0,1,1,0,0,0,1,0,1,1,0,0,2,1,0,0,2 43 | ladybird,0,0,1,0,1,0,1,0,0,1,0,0,6,0,0,0,6 44 | lark,0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,2 45 | leopard,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 46 | lion,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 47 | lobster,0,0,1,0,0,1,1,0,0,0,0,0,6,0,0,0,7 48 | lynx,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 49 | mink,1,0,0,1,0,1,1,1,1,1,0,0,4,1,0,1,1 50 | mole,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,0,1 51 | mongoose,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 52 | moth,1,0,1,0,1,0,0,0,0,1,0,0,6,0,0,0,6 53 | newt,0,0,1,0,0,1,1,1,1,1,0,0,4,1,0,0,5 54 | octopus,0,0,1,0,0,1,1,0,0,0,0,0,8,0,0,1,7 55 | opossum,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,0,1 56 | oryx,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,1 57 | ostrich,0,1,1,0,0,0,0,0,1,1,0,0,2,1,0,1,2 58 | parakeet,0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0,2 59 | penguin,0,1,1,0,0,1,1,0,1,1,0,0,2,1,0,1,2 60 | pheasant,0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,2 61 | pike,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,4 62 | piranha,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,4 63 | pitviper,0,0,1,0,0,0,1,1,1,1,1,0,0,1,0,0,3 64 | platypus,1,0,1,1,0,1,1,0,1,1,0,0,4,1,0,1,1 65 | polecat,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 66 | pony,1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,1 67 | porpoise,0,0,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1 68 | puma,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 69 | pussycat,1,0,0,1,0,0,1,1,1,1,0,0,4,1,1,1,1 70 | raccoon,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 71 | reindeer,1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,1 72 | rhea,0,1,1,0,0,0,1,0,1,1,0,0,2,1,0,1,2 73 | scorpion,0,0,0,0,0,0,1,0,0,1,1,0,8,1,0,0,7 74 | seahorse,0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,4 75 | seal,1,0,0,1,0,1,1,1,1,1,0,1,0,0,0,1,1 76 | sealion,1,0,0,1,0,1,1,1,1,1,0,1,2,1,0,1,1 77 | seasnake,0,0,0,0,0,1,1,1,1,0,1,0,0,1,0,0,3 78 | seawasp,0,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,7 79 | skimmer,0,1,1,0,1,1,1,0,1,1,0,0,2,1,0,0,2 80 | skua,0,1,1,0,1,1,1,0,1,1,0,0,2,1,0,0,2 81 | slowworm,0,0,1,0,0,0,1,1,1,1,0,0,0,1,0,0,3 82 | slug,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,7 83 | sole,0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,4 84 | sparrow,0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,2 85 | squirrel,1,0,0,1,0,0,0,1,1,1,0,0,2,1,0,0,1 86 | starfish,0,0,1,0,0,1,1,0,0,0,0,0,5,0,0,0,7 87 | stingray,0,0,1,0,0,1,1,1,1,0,1,1,0,1,0,1,4 88 | swan,0,1,1,0,1,1,0,0,1,1,0,0,2,1,0,1,2 89 | termite,0,0,1,0,0,0,0,0,0,1,0,0,6,0,0,0,6 90 | toad,0,0,1,0,0,1,0,1,1,1,0,0,4,0,0,0,5 91 | tortoise,0,0,1,0,0,0,0,0,1,1,0,0,4,1,0,1,3 92 | tuatara,0,0,1,0,0,0,1,1,1,1,0,0,4,1,0,0,3 93 | tuna,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,4 94 | vampire,1,0,0,1,1,0,0,1,1,1,0,0,2,1,0,0,1 95 | vole,1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,0,1 96 | vulture,0,1,1,0,1,0,1,0,1,1,0,0,2,1,0,1,2 97 | wallaby,1,0,0,1,0,0,0,1,1,1,0,0,2,1,0,1,1 98 | wasp,1,0,1,0,1,0,0,0,0,1,1,0,6,0,0,0,6 99 | wolf,1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,1 100 | worm,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,7 101 | wren,0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,2 102 | -------------------------------------------------------------------------------- /load_iris_data.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\iris.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "label_set = (\n", 33 | " b'Iris-setosa',\n", 34 | " b'Iris-versicolor',\n", 35 | " b'Iris-virginica',\n", 36 | ")\n", 37 | "def read_label2(label):\n", 38 | " return label_set.index(label)" 39 | ] 40 | }, 41 | { 42 | "cell_type": "code", 43 | "execution_count": 4, 44 | "metadata": {}, 45 | "outputs": [ 46 | { 47 | "name": "stdout", 48 | "output_type": "stream", 49 | "text": [ 50 | "[[5.1 3.5 1.4 0.2 0. ]\n", 51 | " [4.9 3. 1.4 0.2 0. ]\n", 52 | " [4.7 3.2 1.3 0.2 0. ]\n", 53 | " [4.6 3.1 1.5 0.2 0. ]\n", 54 | " [5. 3.6 1.4 0.2 0. ]\n", 55 | " [5.4 3.9 1.7 0.4 0. ]\n", 56 | " [4.6 3.4 1.4 0.3 0. ]\n", 57 | " [5. 3.4 1.5 0.2 0. ]\n", 58 | " [4.4 2.9 1.4 0.2 0. ]\n", 59 | " [4.9 3.1 1.5 0.1 0. ]\n", 60 | " [5.4 3.7 1.5 0.2 0. ]\n", 61 | " [4.8 3.4 1.6 0.2 0. ]\n", 62 | " [4.8 3. 1.4 0.1 0. ]\n", 63 | " [4.3 3. 1.1 0.1 0. ]\n", 64 | " [5.8 4. 1.2 0.2 0. ]\n", 65 | " [5.7 4.4 1.5 0.4 0. ]\n", 66 | " [5.4 3.9 1.3 0.4 0. ]\n", 67 | " [5.1 3.5 1.4 0.3 0. ]\n", 68 | " [5.7 3.8 1.7 0.3 0. ]\n", 69 | " [5.1 3.8 1.5 0.3 0. ]\n", 70 | " [5.4 3.4 1.7 0.2 0. ]\n", 71 | " [5.1 3.7 1.5 0.4 0. ]\n", 72 | " [4.6 3.6 1. 0.2 0. ]\n", 73 | " [5.1 3.3 1.7 0.5 0. ]\n", 74 | " [4.8 3.4 1.9 0.2 0. ]\n", 75 | " [5. 3. 1.6 0.2 0. ]\n", 76 | " [5. 3.4 1.6 0.4 0. ]\n", 77 | " [5.2 3.5 1.5 0.2 0. ]\n", 78 | " [5.2 3.4 1.4 0.2 0. ]\n", 79 | " [4.7 3.2 1.6 0.2 0. ]\n", 80 | " [4.8 3.1 1.6 0.2 0. ]\n", 81 | " [5.4 3.4 1.5 0.4 0. ]\n", 82 | " [5.2 4.1 1.5 0.1 0. ]\n", 83 | " [5.5 4.2 1.4 0.2 0. ]\n", 84 | " [4.9 3.1 1.5 0.1 0. ]\n", 85 | " [5. 3.2 1.2 0.2 0. ]\n", 86 | " [5.5 3.5 1.3 0.2 0. ]\n", 87 | " [4.9 3.1 1.5 0.1 0. ]\n", 88 | " [4.4 3. 1.3 0.2 0. ]\n", 89 | " [5.1 3.4 1.5 0.2 0. ]\n", 90 | " [5. 3.5 1.3 0.3 0. ]\n", 91 | " [4.5 2.3 1.3 0.3 0. ]\n", 92 | " [4.4 3.2 1.3 0.2 0. ]\n", 93 | " [5. 3.5 1.6 0.6 0. ]\n", 94 | " [5.1 3.8 1.9 0.4 0. ]\n", 95 | " [4.8 3. 1.4 0.3 0. ]\n", 96 | " [5.1 3.8 1.6 0.2 0. ]\n", 97 | " [4.6 3.2 1.4 0.2 0. ]\n", 98 | " [5.3 3.7 1.5 0.2 0. ]\n", 99 | " [5. 3.3 1.4 0.2 0. ]\n", 100 | " [7. 3.2 4.7 1.4 1. ]\n", 101 | " [6.4 3.2 4.5 1.5 1. ]\n", 102 | " [6.9 3.1 4.9 1.5 1. ]\n", 103 | " [5.5 2.3 4. 1.3 1. ]\n", 104 | " [6.5 2.8 4.6 1.5 1. ]\n", 105 | " [5.7 2.8 4.5 1.3 1. ]\n", 106 | " [6.3 3.3 4.7 1.6 1. ]\n", 107 | " [4.9 2.4 3.3 1. 1. ]\n", 108 | " [6.6 2.9 4.6 1.3 1. ]\n", 109 | " [5.2 2.7 3.9 1.4 1. ]\n", 110 | " [5. 2. 3.5 1. 1. ]\n", 111 | " [5.9 3. 4.2 1.5 1. ]\n", 112 | " [6. 2.2 4. 1. 1. ]\n", 113 | " [6.1 2.9 4.7 1.4 1. ]\n", 114 | " [5.6 2.9 3.6 1.3 1. ]\n", 115 | " [6.7 3.1 4.4 1.4 1. ]\n", 116 | " [5.6 3. 4.5 1.5 1. ]\n", 117 | " [5.8 2.7 4.1 1. 1. ]\n", 118 | " [6.2 2.2 4.5 1.5 1. ]\n", 119 | " [5.6 2.5 3.9 1.1 1. ]\n", 120 | " [5.9 3.2 4.8 1.8 1. ]\n", 121 | " [6.1 2.8 4. 1.3 1. ]\n", 122 | " [6.3 2.5 4.9 1.5 1. ]\n", 123 | " [6.1 2.8 4.7 1.2 1. ]\n", 124 | " [6.4 2.9 4.3 1.3 1. ]\n", 125 | " [6.6 3. 4.4 1.4 1. ]\n", 126 | " [6.8 2.8 4.8 1.4 1. ]\n", 127 | " [6.7 3. 5. 1.7 1. ]\n", 128 | " [6. 2.9 4.5 1.5 1. ]\n", 129 | " [5.7 2.6 3.5 1. 1. ]\n", 130 | " [5.5 2.4 3.8 1.1 1. ]\n", 131 | " [5.5 2.4 3.7 1. 1. ]\n", 132 | " [5.8 2.7 3.9 1.2 1. ]\n", 133 | " [6. 2.7 5.1 1.6 1. ]\n", 134 | " [5.4 3. 4.5 1.5 1. ]\n", 135 | " [6. 3.4 4.5 1.6 1. ]\n", 136 | " [6.7 3.1 4.7 1.5 1. ]\n", 137 | " [6.3 2.3 4.4 1.3 1. ]\n", 138 | " [5.6 3. 4.1 1.3 1. ]\n", 139 | " [5.5 2.5 4. 1.3 1. ]\n", 140 | " [5.5 2.6 4.4 1.2 1. ]\n", 141 | " [6.1 3. 4.6 1.4 1. ]\n", 142 | " [5.8 2.6 4. 1.2 1. ]\n", 143 | " [5. 2.3 3.3 1. 1. ]\n", 144 | " [5.6 2.7 4.2 1.3 1. ]\n", 145 | " [5.7 3. 4.2 1.2 1. ]\n", 146 | " [5.7 2.9 4.2 1.3 1. ]\n", 147 | " [6.2 2.9 4.3 1.3 1. ]\n", 148 | " [5.1 2.5 3. 1.1 1. ]\n", 149 | " [5.7 2.8 4.1 1.3 1. ]\n", 150 | " [6.3 3.3 6. 2.5 2. ]\n", 151 | " [5.8 2.7 5.1 1.9 2. ]\n", 152 | " [7.1 3. 5.9 2.1 2. ]\n", 153 | " [6.3 2.9 5.6 1.8 2. ]\n", 154 | " [6.5 3. 5.8 2.2 2. ]\n", 155 | " [7.6 3. 6.6 2.1 2. ]\n", 156 | " [4.9 2.5 4.5 1.7 2. ]\n", 157 | " [7.3 2.9 6.3 1.8 2. ]\n", 158 | " [6.7 2.5 5.8 1.8 2. ]\n", 159 | " [7.2 3.6 6.1 2.5 2. ]\n", 160 | " [6.5 3.2 5.1 2. 2. ]\n", 161 | " [6.4 2.7 5.3 1.9 2. ]\n", 162 | " [6.8 3. 5.5 2.1 2. ]\n", 163 | " [5.7 2.5 5. 2. 2. ]\n", 164 | " [5.8 2.8 5.1 2.4 2. ]\n", 165 | " [6.4 3.2 5.3 2.3 2. ]\n", 166 | " [6.5 3. 5.5 1.8 2. ]\n", 167 | " [7.7 3.8 6.7 2.2 2. ]\n", 168 | " [7.7 2.6 6.9 2.3 2. ]\n", 169 | " [6. 2.2 5. 1.5 2. ]\n", 170 | " [6.9 3.2 5.7 2.3 2. ]\n", 171 | " [5.6 2.8 4.9 2. 2. ]\n", 172 | " [7.7 2.8 6.7 2. 2. ]\n", 173 | " [6.3 2.7 4.9 1.8 2. ]\n", 174 | " [6.7 3.3 5.7 2.1 2. ]\n", 175 | " [7.2 3.2 6. 1.8 2. ]\n", 176 | " [6.2 2.8 4.8 1.8 2. ]\n", 177 | " [6.1 3. 4.9 1.8 2. ]\n", 178 | " [6.4 2.8 5.6 2.1 2. ]\n", 179 | " [7.2 3. 5.8 1.6 2. ]\n", 180 | " [7.4 2.8 6.1 1.9 2. ]\n", 181 | " [7.9 3.8 6.4 2. 2. ]\n", 182 | " [6.4 2.8 5.6 2.2 2. ]\n", 183 | " [6.3 2.8 5.1 1.5 2. ]\n", 184 | " [6.1 2.6 5.6 1.4 2. ]\n", 185 | " [7.7 3. 6.1 2.3 2. ]\n", 186 | " [6.3 3.4 5.6 2.4 2. ]\n", 187 | " [6.4 3.1 5.5 1.8 2. ]\n", 188 | " [6. 3. 4.8 1.8 2. ]\n", 189 | " [6.9 3.1 5.4 2.1 2. ]\n", 190 | " [6.7 3.1 5.6 2.4 2. ]\n", 191 | " [6.9 3.1 5.1 2.3 2. ]\n", 192 | " [5.8 2.7 5.1 1.9 2. ]\n", 193 | " [6.8 3.2 5.9 2.3 2. ]\n", 194 | " [6.7 3.3 5.7 2.5 2. ]\n", 195 | " [6.7 3. 5.2 2.3 2. ]\n", 196 | " [6.3 2.5 5. 1.9 2. ]\n", 197 | " [6.5 3. 5.2 2. 2. ]\n", 198 | " [6.2 3.4 5.4 2.3 2. ]\n", 199 | " [5.9 3. 5.1 1.8 2. ]]\n" 200 | ] 201 | } 202 | ], 203 | "source": [ 204 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',', converters ={4:read_label2})\n", 205 | "print(raw_dataset)" 206 | ] 207 | }, 208 | { 209 | "cell_type": "code", 210 | "execution_count": 5, 211 | "metadata": {}, 212 | "outputs": [], 213 | "source": [ 214 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 215 | ] 216 | } 217 | ], 218 | "metadata": { 219 | "kernelspec": { 220 | "display_name": "Python 3", 221 | "language": "python", 222 | "name": "python3" 223 | }, 224 | "language_info": { 225 | "codemirror_mode": { 226 | "name": "ipython", 227 | "version": 3 228 | }, 229 | "file_extension": ".py", 230 | "mimetype": "text/x-python", 231 | "name": "python", 232 | "nbconvert_exporter": "python", 233 | "pygments_lexer": "ipython3", 234 | "version": "3.7.3" 235 | } 236 | }, 237 | "nbformat": 4, 238 | "nbformat_minor": 2 239 | } 240 | -------------------------------------------------------------------------------- /load_iris_data.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[1]: 5 | 6 | 7 | import numpy as np 8 | import sys 9 | import os.path 10 | np.set_printoptions(suppress=True) 11 | 12 | 13 | # In[2]: 14 | 15 | 16 | ROOT_DIR = os.path.dirname(os.path.abspath('__file__')) 17 | dataset_path = os.path.join(ROOT_DIR,r'data_set\iris.data') 18 | dataset_out_path = os.path.join(ROOT_DIR,r'data_set\data_transformed\raw_dataset.out') 19 | 20 | 21 | # In[3]: 22 | 23 | 24 | label_set = ( 25 | b'Iris-setosa', 26 | b'Iris-versicolor', 27 | b'Iris-virginica', 28 | ) 29 | def read_label2(label): 30 | return label_set.index(label) 31 | 32 | 33 | # In[4]: 34 | 35 | 36 | raw_dataset = np.loadtxt(dataset_path, delimiter = ',', converters ={4:read_label2}) 37 | print(raw_dataset) 38 | 39 | 40 | # In[5]: 41 | 42 | 43 | np.savetxt(dataset_out_path, raw_dataset, delimiter=',') 44 | 45 | -------------------------------------------------------------------------------- /load_soybean_data.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\soybean-small.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "label_set = (\n", 33 | " b'D1',\n", 34 | " b'D2',\n", 35 | " b'D3',\n", 36 | " b'D4'\n", 37 | ")\n", 38 | "def read_label2(label):\n", 39 | " return label_set.index(label)" 40 | ] 41 | }, 42 | { 43 | "cell_type": "code", 44 | "execution_count": 4, 45 | "metadata": {}, 46 | "outputs": [ 47 | { 48 | "name": "stdout", 49 | "output_type": "stream", 50 | "text": [ 51 | "[[4. 0. 2. ... 0. 0. 0.]\n", 52 | " [5. 0. 2. ... 0. 0. 0.]\n", 53 | " [3. 0. 2. ... 0. 0. 0.]\n", 54 | " ...\n", 55 | " [2. 1. 1. ... 0. 1. 3.]\n", 56 | " [0. 1. 1. ... 0. 1. 3.]\n", 57 | " [0. 1. 2. ... 0. 1. 3.]]\n" 58 | ] 59 | } 60 | ], 61 | "source": [ 62 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',', converters ={35:read_label2})\n", 63 | "print(raw_dataset)" 64 | ] 65 | }, 66 | { 67 | "cell_type": "code", 68 | "execution_count": 5, 69 | "metadata": {}, 70 | "outputs": [], 71 | "source": [ 72 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 73 | ] 74 | } 75 | ], 76 | "metadata": { 77 | "kernelspec": { 78 | "display_name": "Python 3", 79 | "language": "python", 80 | "name": "python3" 81 | }, 82 | "language_info": { 83 | "codemirror_mode": { 84 | "name": "ipython", 85 | "version": 3 86 | }, 87 | "file_extension": ".py", 88 | "mimetype": "text/x-python", 89 | "name": "python", 90 | "nbconvert_exporter": "python", 91 | "pygments_lexer": "ipython3", 92 | "version": "3.7.3" 93 | } 94 | }, 95 | "nbformat": 4, 96 | "nbformat_minor": 2 97 | } 98 | -------------------------------------------------------------------------------- /load_soybean_data.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[1]: 5 | 6 | 7 | import numpy as np 8 | import sys 9 | import os.path 10 | np.set_printoptions(suppress=True) 11 | 12 | 13 | # In[2]: 14 | 15 | 16 | ROOT_DIR = os.path.dirname(os.path.abspath('__file__')) 17 | dataset_path = os.path.join(ROOT_DIR,r'data_set\soybean-small.data') 18 | dataset_out_path = os.path.join(ROOT_DIR,r'data_set\data_transformed\raw_dataset.out') 19 | 20 | 21 | # In[3]: 22 | 23 | 24 | label_set = ( 25 | b'D1', 26 | b'D2', 27 | b'D3', 28 | b'D4' 29 | ) 30 | def read_label2(label): 31 | return label_set.index(label) 32 | 33 | 34 | # In[4]: 35 | 36 | 37 | raw_dataset = np.loadtxt(dataset_path, delimiter = ',', converters ={35:read_label2}) 38 | print(raw_dataset) 39 | 40 | 41 | # In[5]: 42 | 43 | 44 | np.savetxt(dataset_out_path, raw_dataset, delimiter=',') 45 | 46 | -------------------------------------------------------------------------------- /load_wine_data.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\wine.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "def read_label2(label):\n", 33 | " return str(int(label)-1)" 34 | ] 35 | }, 36 | { 37 | "cell_type": "code", 38 | "execution_count": 4, 39 | "metadata": {}, 40 | "outputs": [ 41 | { 42 | "name": "stdout", 43 | "output_type": "stream", 44 | "text": [ 45 | "[[ 14.23 1.71 2.43 ... 3.92 1065. 0. ]\n", 46 | " [ 13.2 1.78 2.14 ... 3.4 1050. 0. ]\n", 47 | " [ 13.16 2.36 2.67 ... 3.17 1185. 0. ]\n", 48 | " ...\n", 49 | " [ 13.27 4.28 2.26 ... 1.56 835. 2. ]\n", 50 | " [ 13.17 2.59 2.37 ... 1.62 840. 2. ]\n", 51 | " [ 14.13 4.1 2.74 ... 1.6 560. 2. ]]\n" 52 | ] 53 | } 54 | ], 55 | "source": [ 56 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',',converters ={0:read_label2})\n", 57 | "raw_dataset_label = raw_dataset[...,0]\n", 58 | "rm = raw_dataset_label.size\n", 59 | "raw_dataset_label = raw_dataset_label.reshape(rm,1)\n", 60 | "raw_dataset = np.concatenate((raw_dataset[...,1:],raw_dataset_label),axis = 1)\n", 61 | "print(raw_dataset)" 62 | ] 63 | }, 64 | { 65 | "cell_type": "code", 66 | "execution_count": 5, 67 | "metadata": {}, 68 | "outputs": [], 69 | "source": [ 70 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 71 | ] 72 | } 73 | ], 74 | "metadata": { 75 | "kernelspec": { 76 | "display_name": "Python 3", 77 | "language": "python", 78 | "name": "python3" 79 | }, 80 | "language_info": { 81 | "codemirror_mode": { 82 | "name": "ipython", 83 | "version": 3 84 | }, 85 | "file_extension": ".py", 86 | "mimetype": "text/x-python", 87 | "name": "python", 88 | "nbconvert_exporter": "python", 89 | "pygments_lexer": "ipython3", 90 | "version": "3.7.3" 91 | } 92 | }, 93 | "nbformat": 4, 94 | "nbformat_minor": 2 95 | } 96 | -------------------------------------------------------------------------------- /load_wine_data.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[1]: 5 | 6 | 7 | import numpy as np 8 | import sys 9 | import os.path 10 | np.set_printoptions(suppress=True) 11 | 12 | 13 | # In[2]: 14 | 15 | 16 | ROOT_DIR = os.path.dirname(os.path.abspath('__file__')) 17 | dataset_path = os.path.join(ROOT_DIR,r'data_set\wine.data') 18 | dataset_out_path = os.path.join(ROOT_DIR,r'data_set\data_transformed\raw_dataset.out') 19 | 20 | 21 | # In[3]: 22 | 23 | 24 | def read_label2(label): 25 | return str(int(label)-1) 26 | 27 | 28 | # In[4]: 29 | 30 | 31 | raw_dataset = np.loadtxt(dataset_path, delimiter = ',',converters ={0:read_label2}) 32 | raw_dataset_label = raw_dataset[...,0] 33 | rm = raw_dataset_label.size 34 | raw_dataset_label = raw_dataset_label.reshape(rm,1) 35 | raw_dataset = np.concatenate((raw_dataset[...,1:],raw_dataset_label),axis = 1) 36 | print(raw_dataset) 37 | 38 | 39 | # In[5]: 40 | 41 | 42 | np.savetxt(dataset_out_path, raw_dataset, delimiter=',') 43 | 44 | -------------------------------------------------------------------------------- /load_zoo_data.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import sys\n", 11 | "import os.path\n", 12 | "np.set_printoptions(suppress=True)" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 22 | "dataset_path = os.path.join(ROOT_DIR,r'data_set\\zoo.data')\n", 23 | "dataset_out_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')" 24 | ] 25 | }, 26 | { 27 | "cell_type": "code", 28 | "execution_count": 3, 29 | "metadata": {}, 30 | "outputs": [], 31 | "source": [ 32 | "def read_label2(label):\n", 33 | " return str(int(label)-1)" 34 | ] 35 | }, 36 | { 37 | "cell_type": "code", 38 | "execution_count": 4, 39 | "metadata": {}, 40 | "outputs": [ 41 | { 42 | "name": "stdout", 43 | "output_type": "stream", 44 | "text": [ 45 | "[[1. 0. 0. ... 0. 1. 0.]\n", 46 | " [1. 0. 0. ... 0. 1. 0.]\n", 47 | " [0. 0. 1. ... 0. 0. 3.]\n", 48 | " ...\n", 49 | " [1. 0. 0. ... 0. 1. 0.]\n", 50 | " [0. 0. 1. ... 0. 0. 6.]\n", 51 | " [0. 1. 1. ... 0. 0. 1.]]\n" 52 | ] 53 | } 54 | ], 55 | "source": [ 56 | "raw_dataset = np.loadtxt(dataset_path, delimiter = ',',usecols=(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17),converters ={17:read_label2})\n", 57 | "np.delete(raw_dataset,0,axis = 1)\n", 58 | "print(raw_dataset)" 59 | ] 60 | }, 61 | { 62 | "cell_type": "code", 63 | "execution_count": 5, 64 | "metadata": {}, 65 | "outputs": [], 66 | "source": [ 67 | "np.savetxt(dataset_out_path, raw_dataset, delimiter=',')" 68 | ] 69 | } 70 | ], 71 | "metadata": { 72 | "kernelspec": { 73 | "display_name": "Python 3", 74 | "language": "python", 75 | "name": "python3" 76 | }, 77 | "language_info": { 78 | "codemirror_mode": { 79 | "name": "ipython", 80 | "version": 3 81 | }, 82 | "file_extension": ".py", 83 | "mimetype": "text/x-python", 84 | "name": "python", 85 | "nbconvert_exporter": "python", 86 | "pygments_lexer": "ipython3", 87 | "version": "3.7.3" 88 | } 89 | }, 90 | "nbformat": 4, 91 | "nbformat_minor": 2 92 | } 93 | -------------------------------------------------------------------------------- /load_zoo_data.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[1]: 5 | 6 | 7 | import numpy as np 8 | import sys 9 | import os.path 10 | np.set_printoptions(suppress=True) 11 | 12 | 13 | # In[2]: 14 | 15 | 16 | ROOT_DIR = os.path.dirname(os.path.abspath('__file__')) 17 | dataset_path = os.path.join(ROOT_DIR,r'data_set\zoo.data') 18 | dataset_out_path = os.path.join(ROOT_DIR,r'data_set\data_transformed\raw_dataset.out') 19 | 20 | 21 | # In[3]: 22 | 23 | 24 | def read_label2(label): 25 | return str(int(label)-1) 26 | 27 | 28 | # In[4]: 29 | 30 | 31 | raw_dataset = np.loadtxt(dataset_path, delimiter = ',',usecols=(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17),converters ={17:read_label2}) 32 | np.delete(raw_dataset,0,axis = 1) 33 | print(raw_dataset) 34 | 35 | 36 | # In[5]: 37 | 38 | 39 | np.savetxt(dataset_out_path, raw_dataset, delimiter=',') 40 | 41 | -------------------------------------------------------------------------------- /minmax_out/test_minmax.out: -------------------------------------------------------------------------------- 1 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 2 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 3 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 4 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 5 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,3.000000000000000000e+00 6 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 7 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 8 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 9 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 10 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 11 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 12 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 13 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 14 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 15 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 16 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 17 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,6.000000000000000000e+00 18 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00 19 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 20 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.000000000000000000e+00 21 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 22 | 0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 23 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 24 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 25 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00 26 | 0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 27 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 28 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 29 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,3.000000000000000000e+00 30 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 31 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,4.000000000000000000e+00 32 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,3.000000000000000000e+00 33 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 34 | -------------------------------------------------------------------------------- /minmax_out/train_minmax.out: -------------------------------------------------------------------------------- 1 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 2 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 3 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 4 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 5 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 6 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 7 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 8 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 9 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 10 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 11 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 12 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 13 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 14 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 15 | 0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 16 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 17 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 18 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00 19 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,4.000000000000000000e+00 20 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,4.000000000000000000e+00 21 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 22 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 23 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 24 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 25 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 26 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 27 | 1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 28 | 1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 29 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 30 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 31 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 32 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 33 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 34 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 35 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 36 | 1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 37 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,4.000000000000000000e+00 38 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 39 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 40 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00 41 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 42 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 43 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,3.000000000000000000e+00 44 | 1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 45 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 46 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 47 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 48 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 49 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 50 | 0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.000000000000000000e+00 51 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 52 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 53 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 54 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.000000000000000000e+00 55 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 56 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,3.000000000000000000e+00 57 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 58 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.250000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 59 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00 60 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,2.000000000000000000e+00 61 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.000000000000000000e+00 62 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 63 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 64 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00 65 | 1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00 66 | 1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,7.500000000000000000e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00 67 | 0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,6.000000000000000000e+00 68 | 0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e-01,1.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,1.000000000000000000e+00 69 | -------------------------------------------------------------------------------- /mod/__pycache__/core.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/mod/__pycache__/core.cpython-37.pyc -------------------------------------------------------------------------------- /mod/__pycache__/datatest.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/mod/__pycache__/datatest.cpython-37.pyc -------------------------------------------------------------------------------- /mod/core.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[ ]: 5 | 6 | import sys 7 | import os.path 8 | import numpy as np 9 | np.set_printoptions(suppress=True) 10 | import math 11 | import json 12 | 13 | ROOT_DIR = os.path.dirname(os.path.abspath('__file__')) 14 | 15 | # In[1]: 16 | 17 | 18 | class DataTrain: 19 | # 当前迭代数 20 | __lter = 0 21 | # 数据类别数 22 | __classes = 3 23 | # 训练数据目录 24 | __train_path = '' 25 | 26 | def __init__(self,l,c,p): 27 | self.__lter = l 28 | self.__classes = c 29 | self.__train_path = p 30 | 31 | def start_train(self): 32 | def add_simple(data,w,d,tag): 33 | count = 0 34 | m,n = data.shape 35 | for i in range(m): 36 | if np.dot(data[i][0:n-2],w) <= d and tag == data[i][n-2]: 37 | data[i][n-1] = 1 38 | count = count + 1 39 | return count 40 | 41 | def if_finish(train): 42 | m,n = train.shape 43 | for i in range(m): 44 | if train[i][n-1] == 0: 45 | f = 0 46 | break 47 | else: 48 | f = 1 49 | return f 50 | 51 | train = np.loadtxt(self.__train_path, delimiter = ',') 52 | 53 | # print(train) 54 | 55 | m,n = train.shape 56 | # print('原维度:%d %d' % (m,n)) 57 | 58 | di = [] 59 | for i in range(m): 60 | temp = 0 61 | for j in range(n-1): 62 | temp = temp + math.pow(train[i][j],2) 63 | di.append(math.sqrt(temp)) 64 | # print(di) 65 | 66 | dmax = math.ceil(max(di)) 67 | for i in range(len(di)): 68 | di[i] = math.sqrt(math.pow(dmax,2) - math.pow(di[i],2)) 69 | train = np.insert(train,4,di,axis=1) 70 | trans_m,trans_n = train.shape 71 | # print('升维后维度:%d %d' % (trans_m,trans_n)) 72 | 73 | # print(train) 74 | 75 | # 最后一列记为是否已学习 76 | temp = np.zeros((trans_m,1)) 77 | train = np.concatenate((train,temp),axis=1) 78 | # print(train) 79 | 80 | result = {} 81 | for i in range(self.__classes): 82 | result[str(i)] = [] 83 | 84 | cc = 0 85 | while if_finish(train) == 0: 86 | if cc == 5000: 87 | print('///////////////////////////////超时!/////////////////////////////////') 88 | # print(train) 89 | break 90 | for i in range(trans_m): 91 | if train[i][trans_n] == 0: 92 | train[i][trans_n] = 1 93 | tag = train[i][trans_n-1] 94 | temp = {} 95 | temp['count'] = 1 96 | w = train[i][0:trans_n-1] 97 | temp['w'] = w.tolist() 98 | d0 = [] 99 | d1 = [] 100 | for j in range(trans_m): 101 | if train[j][trans_n-1] == tag: 102 | d0.append(np.dot(w,train[j][0:trans_n-1])) 103 | else: 104 | d1.append(np.dot(w,train[j][0:trans_n-1])) 105 | di1 = max(d1) 106 | di0 = di1 107 | d0.sort() 108 | for z in range(len(d0)): 109 | if d0[z] >= di1: 110 | di0 = d0[z] 111 | break 112 | d = (di0 + di1)/2 113 | temp['d'] = d 114 | con = add_simple(train,w,d,tag) 115 | temp['count'] = temp['count'] + con 116 | result[str(int(tag))].append(temp) 117 | cc = cc + 1 118 | 119 | # print(train) 120 | 121 | result_path = ROOT_DIR + r'\result\result' + str(self.__lter) + r'.json' 122 | with open(result_path, 'w') as fw: 123 | json.dump(result,fw) 124 | -------------------------------------------------------------------------------- /mod/datatest.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[1]: 5 | 6 | 7 | import numpy as np 8 | np.set_printoptions(suppress=True) 9 | import math 10 | import json 11 | 12 | 13 | # In[2]: 14 | 15 | class DataTest: 16 | # 数据类别数 17 | __classes = 3 18 | # 测试数据路径 19 | __test_minmax_path = 'E:\AI\test_minmax.out' 20 | # 训练结果路径 21 | __full_result_path = 'E:\AI\result\full\full_result.json' 22 | 23 | def __init__(self,c,tp,fp): 24 | self.__classes = c 25 | self.__test_minmax_path = tp 26 | self.__full_result_path = fp 27 | 28 | def start_test(self): 29 | 30 | def gravitation(C,present_test): 31 | m = len(C['w']) 32 | culmut = 0.0 33 | for i in range(m): 34 | culmut = culmut + math.pow((C['w'][i]-present_test[i]),2) 35 | result = C['count']/culmut 36 | return round(result,2) 37 | 38 | 39 | test_data = np.loadtxt(self.__test_minmax_path, delimiter = ',') 40 | with open(self.__full_result_path, 'r') as f_full_result: 41 | full_result = json.load(f_full_result) 42 | 43 | m,n = test_data.shape 44 | # print('原维度:%d %d' % (m,n)) 45 | 46 | di = [] 47 | for i in range(m): 48 | temp = 0 49 | for j in range(n-1): 50 | temp = temp + math.pow(test_data[i][j],2) 51 | di.append(math.sqrt(temp)) 52 | # print(di) 53 | 54 | dmax = math.ceil(max(di)) 55 | for i in range(len(di)): 56 | di[i] = math.sqrt(math.pow(dmax,2) - math.pow(di[i],2)) 57 | test_data = np.insert(test_data,4,di,axis=1) 58 | test_m,test_n = test_data.shape 59 | # print('升维后维度:%d %d' % (test_m,test_n)) 60 | 61 | out = np.zeros([1,self.__classes]) 62 | predict_result = [] 63 | total_match = 0 64 | for testi in range(m): 65 | success = [] 66 | outi = [] 67 | present_test = test_data[testi,0:test_n-1] 68 | present_tag = int(test_data[testi,test_n-1]) 69 | for i in range(self.__classes): 70 | oi = 0 71 | for j in full_result[str(int(i))]: 72 | w = np.array(j['w']) 73 | w = w.reshape(1,test_n-1) 74 | if np.dot(w,present_test) >= j['d']: 75 | oi = oi + 1 76 | outi.append(oi) 77 | for temp in outi: 78 | if temp != 0: 79 | break; 80 | else: 81 | del outi 82 | outi = [] 83 | flag = 0 84 | for i in range(self.__classes): 85 | oi = 0 86 | for j in full_result[str(int(i))]: 87 | oi = oi + gravitation(j,present_test) 88 | outi.append(oi) 89 | predict = outi.index(max(outi)) 90 | out = np.append(out,np.asarray(outi).reshape(1,self.__classes),axis=0) 91 | predict_result.append(predict) 92 | if predict == present_tag: 93 | success.append(1) 94 | total_match = total_match + 1 95 | else: 96 | success.append(0) 97 | print('正确率: %.2f %%' % ((total_match/m)*100)) 98 | 99 | # 对测试集所有数据的预测结果 100 | print('对测试集所有数据的测试结果') 101 | out = np.delete(out,0,axis=0) 102 | print(out) 103 | print('------------------------------------------------------------------') 104 | print('对测试集所有数据的预测结果') 105 | print(predict_result) 106 | print('==================================================================') 107 | -------------------------------------------------------------------------------- /references/1995(CCA起源文章1)-Programming based learning algori.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/references/1995(CCA起源文章1)-Programming based learning algori.pdf -------------------------------------------------------------------------------- /references/1999(CCA起源文章2)-A Geometrical Representation of M.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/references/1999(CCA起源文章2)-A Geometrical Representation of M.pdf -------------------------------------------------------------------------------- /references/构造性覆盖算法.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanjeev906/constructive-covering-algorithm-implemented-in-Python/c9dc9062b404f5c77ebe339efdbee4435895eacd/references/构造性覆盖算法.pdf -------------------------------------------------------------------------------- /result/full/full_result.json: -------------------------------------------------------------------------------- 1 | {"0": [{"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.656357261102425}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.203718260513526}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.203718260513526}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.203718260513526}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.68943192546046}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.430153101254529}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 0.0], "d": 13.710844837712642}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.9352130744697}, {"count": 8, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.486476600955584}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.61817695611387}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.141713593372799}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.590190694092058}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 1.0, 0.0], "d": 13.715233470039244}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 0.0, 0.0, 1.0], "d": 13.602334610510663}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 0.0], "d": 13.677071733467427}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.118349599429864}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.402004708856992}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.544850952505627}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.141912322064513}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.118349599429864}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 13.698195834623057}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.656357261102425}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.656357261102425}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.430153101254529}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.68943192546046}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 0.0, 0.0, 1.0], "d": 13.602334610510663}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.181245184896989}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.125168349955143}, {"count": 8, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.710844837712642}, {"count": 8, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.710844837712642}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.181245184896989}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.137057110797953}], "1": [{"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.963472480028836}, {"count": 5, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.963472480028836}, {"count": 7, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.963472480028836}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.865375846216706}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.817356917396161, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.926572294915443}, {"count": 8, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.984350509344221}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.395846969543385}, {"count": 3, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.227723339078185}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.395846969543385}, {"count": 3, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.46950367837272}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.395846969543385}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 14.206058558104296}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.22671261703146}, {"count": 3, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.702324475686357}, {"count": 14, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 15.473757430806241}], "2": [{"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 15.120808336123511}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.122498999199199, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 15.743238300477792}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 14.471986570097004}, {"count": 3, "w": [0.0, 0.0, 0.0, 0.0, 3.1622776601683795, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 14.486832980505138}, {"count": 4, "w": [0.0, 0.0, 0.0, 0.0, 3.1622776601683795, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 15.243416490252569}], "3": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0], "d": 13.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.484298073893225}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.484298073893225}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.71379334177352}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.71379334177352}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.71379334177352}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0], "d": 14.179700524443998}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.937059837324712}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.937059837324712}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.484298073893225}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.649207688467007}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.649207688467007}], "4": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.122498999199199, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 15.243238300477792}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.911351022642418}, {"count": 4, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 15.486476600955584}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.278719262151, 0.0, 1.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 15.196932689530684}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.122498999199199, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 15.243238300477792}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.743238300477792}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 15.486476600955584}], "5": [{"count": 4, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}, {"count": 4, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}, {"count": 5, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}, {"count": 5, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}, {"count": 1, "w": [1.0, 0.0, 1.0, 0.0, 3.072051431861127, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.75, 0.0, 1.0, 0.0], "d": 13.723274651203452}, {"count": 1, "w": [1.0, 0.0, 1.0, 0.0, 3.3819373146171707, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.80301805233901}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.3819373146171707, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.827025367421882}, {"count": 1, "w": [1.0, 0.0, 1.0, 0.0, 3.3819373146171707, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.80301805233901}], "6": [{"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.7416573867739413, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 14.857933362172602}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.570714214271425, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.90347813653816}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842988887090101}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842988887090101}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.3166247903554, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0], "d": 14.227871215081667}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.4641016151377544, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 13.95796627345952}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.550968177835448, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.625, 0.0, 0.0, 0.0], "d": 14.89325907930333}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.7416573867739413, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 14.807766065829743}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.570714214271425, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.905660428482925}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842583709833907}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842583709833907}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.4641016151377544, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 14.604216081387658}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.550968177835448, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.625, 0.0, 0.0, 0.0], "d": 14.882204048218524}]} -------------------------------------------------------------------------------- /result/result1.json: -------------------------------------------------------------------------------- 1 | {"0": [{"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.656357261102425}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.203718260513526}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.203718260513526}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.203718260513526}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.68943192546046}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.430153101254529}, {"count": 4, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 0.0], "d": 13.710844837712642}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.9352130744697}, {"count": 8, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.486476600955584}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.61817695611387}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.141713593372799}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.942669325356855}], "1": [{"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.963472480028836}, {"count": 5, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.963472480028836}, {"count": 7, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.963472480028836}], "2": [{"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 15.120808336123511}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.122498999199199, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 15.743238300477792}], "3": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0], "d": 13.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.484298073893225}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.905686803921599}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.484298073893225}], "4": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.122498999199199, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 15.243238300477792}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.911351022642418}, {"count": 4, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 15.486476600955584}], "5": [{"count": 4, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}, {"count": 4, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}], "6": [{"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.7416573867739413, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 14.857933362172602}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.570714214271425, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.90347813653816}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842988887090101}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842988887090101}]} -------------------------------------------------------------------------------- /result/result2.json: -------------------------------------------------------------------------------- 1 | {"0": [{"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.590190694092058}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 1.0, 0.0], "d": 13.715233470039244}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 0.0, 0.0, 1.0], "d": 13.602334610510663}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 0.0], "d": 13.677071733467427}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.118349599429864}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.402004708856992}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.638051936014199}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.544850952505627}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.133157295281084}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.141912322064513}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.118349599429864}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 13.698195834623057}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 13.87303887809318}], "1": [{"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 13.865375846216706}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.817356917396161, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.926572294915443}, {"count": 8, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.984350509344221}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.395846969543385}, {"count": 3, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.227723339078185}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.395846969543385}, {"count": 3, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.46950367837272}, {"count": 2, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.395846969543385}], "2": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 14.471986570097004}, {"count": 3, "w": [0.0, 0.0, 0.0, 0.0, 3.1622776601683795, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 14.486832980505138}], "3": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.71379334177352}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.71379334177352}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.712043456849456}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.65624629333151}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.71379334177352}], "4": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.278719262151, 0.0, 1.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 15.196932689530684}], "5": [{"count": 5, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}, {"count": 5, "w": [0.0, 0.0, 1.0, 0.0, 3.665719574653795, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 15.857933362172602}], "6": [{"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.3166247903554, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0], "d": 14.227871215081667}, {"count": 2, "w": [0.0, 0.0, 1.0, 0.0, 3.4641016151377544, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 13.95796627345952}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.550968177835448, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.625, 0.0, 0.0, 0.0], "d": 14.89325907930333}]} -------------------------------------------------------------------------------- /result/result3.json: -------------------------------------------------------------------------------- 1 | {"0": [{"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.656357261102425}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 1.0], "d": 13.656357261102425}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 2, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0], "d": 13.430153101254529}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 13.68943192546046}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 3.152380053229623, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 0.0, 0.0, 1.0], "d": 13.602334610510663}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.181245184896989}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.5980762113533165, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.125168349955143}, {"count": 8, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.710844837712642}, {"count": 8, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.710844837712642}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.958039891549808, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.140716996152328}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 1, "w": [1.0, 0.0, 0.0, 1.0, 2.7838821814150108, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 1.0], "d": 14.154064628342486}, {"count": 5, "w": [1.0, 0.0, 0.0, 1.0, 3.122498999199199, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 14.181245184896989}, {"count": 3, "w": [1.0, 0.0, 0.0, 1.0, 2.9895651857753496, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.137057110797953}], "1": [{"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 1.0, 0.0], "d": 14.206058558104296}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.22671261703146}, {"count": 3, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 14.963472480028836}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 2.9895651857753496, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.472543228387607}, {"count": 1, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 0.0], "d": 14.702324475686357}, {"count": 14, "w": [0.0, 1.0, 1.0, 0.0, 3.152380053229623, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.25, 1.0, 0.0, 1.0], "d": 15.473757430806241}], "2": [{"count": 4, "w": [0.0, 0.0, 0.0, 0.0, 3.1622776601683795, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0], "d": 15.243416490252569}], "3": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0], "d": 14.179700524443998}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.937059837324712}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.937059837324712}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.82842712474619, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0], "d": 14.484298073893225}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.649207688467007}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.1622776601683795, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0], "d": 14.649207688467007}], "4": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.122498999199199, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 15.243238300477792}, {"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.743238300477792}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 2.958039891549808, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0], "d": 15.486476600955584}], "5": [{"count": 1, "w": [1.0, 0.0, 1.0, 0.0, 3.072051431861127, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.75, 0.0, 1.0, 0.0], "d": 13.723274651203452}, {"count": 1, "w": [1.0, 0.0, 1.0, 0.0, 3.3819373146171707, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.80301805233901}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.3819373146171707, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.827025367421882}, {"count": 1, "w": [1.0, 0.0, 1.0, 0.0, 3.3819373146171707, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.80301805233901}], "6": [{"count": 1, "w": [0.0, 0.0, 1.0, 0.0, 3.7416573867739413, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 14.807766065829743}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.570714214271425, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0], "d": 14.905660428482925}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842583709833907}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.526683994916471, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0], "d": 14.842583709833907}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.4641016151377544, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], "d": 14.604216081387658}, {"count": 3, "w": [0.0, 0.0, 1.0, 0.0, 3.550968177835448, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.625, 0.0, 0.0, 0.0], "d": 14.882204048218524}]} -------------------------------------------------------------------------------- /train.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import sys\n", 10 | "import os.path\n", 11 | "from sklearn.model_selection import KFold\n", 12 | "from sklearn import preprocessing\n", 13 | "import numpy as np\n", 14 | "np.set_printoptions(suppress=True)\n", 15 | "import json" 16 | ] 17 | }, 18 | { 19 | "cell_type": "code", 20 | "execution_count": 2, 21 | "metadata": {}, 22 | "outputs": [], 23 | "source": [ 24 | "ROOT_DIR = os.path.dirname(os.path.abspath('__file__'))\n", 25 | "sys.path.append(os.path.join(ROOT_DIR,r'mod'))\n", 26 | "from core import DataTrain\n", 27 | "from datatest import DataTest" 28 | ] 29 | }, 30 | { 31 | "cell_type": "code", 32 | "execution_count": 3, 33 | "metadata": {}, 34 | "outputs": [], 35 | "source": [ 36 | "raw_dataset_path = os.path.join(ROOT_DIR,r'data_set\\data_transformed\\raw_dataset.out')\n", 37 | "full_result_path = os.path.join(ROOT_DIR,r'result\\full\\full_result.json')\n", 38 | "train_minmax_path = os.path.join(ROOT_DIR,r'minmax_out\\train_minmax.out')\n", 39 | "test_minmax_path = os.path.join(ROOT_DIR,r'minmax_out\\test_minmax.out')" 40 | ] 41 | }, 42 | { 43 | "cell_type": "code", 44 | "execution_count": 4, 45 | "metadata": {}, 46 | "outputs": [], 47 | "source": [ 48 | "raw_dataset = np.loadtxt(raw_dataset_path, delimiter = ',')\n", 49 | "# print(raw_dataset)" 50 | ] 51 | }, 52 | { 53 | "cell_type": "code", 54 | "execution_count": 5, 55 | "metadata": {}, 56 | "outputs": [ 57 | { 58 | "name": "stdout", 59 | "output_type": "stream", 60 | "text": [ 61 | "101 17\n" 62 | ] 63 | } 64 | ], 65 | "source": [ 66 | "m,n = raw_dataset.shape\n", 67 | "print(m,n)" 68 | ] 69 | }, 70 | { 71 | "cell_type": "code", 72 | "execution_count": 6, 73 | "metadata": {}, 74 | "outputs": [], 75 | "source": [ 76 | "# KFold划分\n", 77 | "n_splits = 3" 78 | ] 79 | }, 80 | { 81 | "cell_type": "code", 82 | "execution_count": 7, 83 | "metadata": {}, 84 | "outputs": [], 85 | "source": [ 86 | "# 数据类别数\n", 87 | "classes = 7\n", 88 | "full_result = {}\n", 89 | "for i in range(classes):\n", 90 | " full_result[str(i)] = []\n", 91 | "with open(full_result_path, 'w') as f_full_result:\n", 92 | " json.dump(full_result,f_full_result)" 93 | ] 94 | }, 95 | { 96 | "cell_type": "code", 97 | "execution_count": 8, 98 | "metadata": {}, 99 | "outputs": [ 100 | { 101 | "name": "stdout", 102 | "output_type": "stream", 103 | "text": [ 104 | "第1次迭代测试:\n", 105 | "正确率: 44.12 %\n", 106 | "对测试集所有数据的测试结果\n", 107 | "[[0. 0. 0. 0. 0. 0. 0.]\n", 108 | " [0. 0. 0. 0. 0. 0. 0.]\n", 109 | " [0. 0. 0. 0. 0. 0. 0.]\n", 110 | " [0. 0. 0. 0. 0. 0. 0.]\n", 111 | " [0. 0. 0. 0. 0. 0. 0.]\n", 112 | " [0. 0. 0. 0. 0. 0. 0.]\n", 113 | " [0. 0. 0. 0. 0. 0. 0.]\n", 114 | " [0. 0. 0. 0. 0. 0. 0.]\n", 115 | " [0. 0. 0. 0. 0. 0. 0.]\n", 116 | " [0. 0. 0. 0. 0. 0. 0.]\n", 117 | " [0. 0. 0. 0. 0. 0. 0.]\n", 118 | " [0. 0. 0. 0. 0. 0. 0.]\n", 119 | " [0. 0. 0. 0. 0. 0. 0.]\n", 120 | " [0. 0. 0. 0. 0. 0. 0.]\n", 121 | " [0. 0. 0. 0. 0. 0. 0.]\n", 122 | " [0. 0. 0. 0. 0. 0. 0.]\n", 123 | " [0. 0. 0. 0. 0. 0. 0.]\n", 124 | " [0. 0. 0. 0. 0. 0. 0.]\n", 125 | " [0. 0. 0. 0. 0. 0. 0.]\n", 126 | " [0. 0. 0. 0. 0. 0. 0.]\n", 127 | " [0. 0. 0. 0. 0. 0. 0.]\n", 128 | " [0. 0. 0. 0. 0. 0. 0.]\n", 129 | " [0. 0. 0. 0. 0. 0. 0.]\n", 130 | " [0. 0. 0. 0. 0. 0. 0.]\n", 131 | " [0. 0. 0. 0. 0. 0. 0.]\n", 132 | " [0. 0. 0. 0. 0. 0. 0.]\n", 133 | " [0. 0. 0. 0. 0. 0. 0.]\n", 134 | " [0. 0. 0. 0. 0. 0. 0.]\n", 135 | " [0. 0. 0. 0. 0. 0. 0.]\n", 136 | " [0. 0. 0. 0. 0. 0. 0.]\n", 137 | " [0. 0. 0. 0. 0. 0. 0.]\n", 138 | " [0. 0. 0. 0. 0. 0. 0.]\n", 139 | " [0. 0. 0. 0. 0. 0. 0.]\n", 140 | " [0. 0. 0. 0. 0. 0. 0.]]\n", 141 | "------------------------------------------------------------------\n", 142 | "对测试集所有数据的预测结果\n", 143 | "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n", 144 | "==================================================================\n", 145 | "第2次迭代测试:\n", 146 | "正确率: 88.24 %\n", 147 | "对测试集所有数据的测试结果\n", 148 | "[[19. 0. 0. 0. 0. 0. 0. ]\n", 149 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 150 | " [ 0. 0. 0. 9. 0. 0. 0. ]\n", 151 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 152 | " [ 0. 0. 0. 9. 0. 0. 0. ]\n", 153 | " [ 0. 0. 0. 0. 0. 0. 4. ]\n", 154 | " [ 0. 0. 0. 0. 0. 0. 4. ]\n", 155 | " [ 0. 0. 0. 0. 0. 0. 4. ]\n", 156 | " [ 0. 7. 0. 0. 0. 0. 0. ]\n", 157 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 158 | " [ 0. 6. 0. 0. 0. 0. 0. ]\n", 159 | " [ 0. 7. 0. 0. 0. 0. 0. ]\n", 160 | " [ 0. 0. 0. 0. 3. 0. 0. ]\n", 161 | " [ 0. 0. 0. 0. 2. 0. 0. ]\n", 162 | " [18. 0. 0. 0. 0. 0. 0. ]\n", 163 | " [16. 0. 0. 0. 0. 0. 0. ]\n", 164 | " [ 0. 7. 0. 0. 0. 0. 0. ]\n", 165 | " [ 8.06 3.37 0.75 1.14 0.85 3.84 2.43]\n", 166 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 167 | " [ 0. 0. 0. 0. 0. 0. 4. ]\n", 168 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 169 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 170 | " [ 1. 0. 0. 0. 3. 0. 0. ]\n", 171 | " [ 0. 6. 0. 0. 0. 0. 0. ]\n", 172 | " [12. 0. 0. 0. 0. 0. 0. ]\n", 173 | " [19. 0. 0. 0. 0. 0. 0. ]\n", 174 | " [ 0. 5. 0. 0. 0. 0. 0. ]\n", 175 | " [ 0. 0. 0. 9. 0. 0. 0. ]\n", 176 | " [11.36 7.51 1.45 1.92 1.33 2.5 2.02]\n", 177 | " [ 9. 0. 2. 0. 1. 0. 0. ]\n", 178 | " [18. 0. 0. 0. 0. 0. 0. ]\n", 179 | " [ 7.2 2.91 0.72 1.05 0.79 2.5 1.99]\n", 180 | " [ 0. 0. 0. 0. 0. 0. 1. ]\n", 181 | " [ 0. 6. 0. 0. 0. 0. 0. ]]\n", 182 | "------------------------------------------------------------------\n", 183 | "对测试集所有数据的预测结果\n", 184 | "[0, 0, 3, 0, 3, 6, 6, 6, 1, 0, 1, 1, 4, 4, 0, 0, 1, 0, 0, 6, 0, 0, 4, 1, 0, 0, 1, 3, 0, 0, 0, 0, 6, 1]\n", 185 | "==================================================================\n", 186 | "第3次迭代测试:\n", 187 | "正确率: 96.97 %\n", 188 | "对测试集所有数据的测试结果\n", 189 | "[[ 0. 0. 1. 18. 0. 0. 0. ]\n", 190 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 191 | " [43. 0. 0. 0. 0. 0. 0. ]\n", 192 | " [ 0. 13. 0. 0. 0. 0. 0. ]\n", 193 | " [ 0. 0. 0. 18. 0. 0. 0. ]\n", 194 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 195 | " [ 0. 0. 0. 0. 0. 4. 0. ]\n", 196 | " [13.24 9.03 1.32 2.53 1.22 17.66 4.77]\n", 197 | " [43. 0. 0. 0. 0. 0. 0. ]\n", 198 | " [ 0. 12. 0. 0. 0. 0. 0. ]\n", 199 | " [ 0. 0. 0. 18. 0. 0. 0. ]\n", 200 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 201 | " [ 0. 0. 1. 18. 0. 0. 0. ]\n", 202 | " [ 0. 15. 0. 0. 0. 0. 0. ]\n", 203 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 204 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 205 | " [ 0. 0. 0. 0. 0. 0. 6. ]\n", 206 | " [ 0. 7. 0. 0. 0. 0. 0. ]\n", 207 | " [ 0. 0. 1. 18. 0. 0. 0. ]\n", 208 | " [ 0. 0. 3. 0. 0. 0. 0. ]\n", 209 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 210 | " [29. 0. 0. 0. 0. 0. 0. ]\n", 211 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 212 | " [43. 0. 0. 0. 0. 0. 0. ]\n", 213 | " [ 0. 16. 0. 0. 0. 0. 0. ]\n", 214 | " [16.21 7.19 2.03 2.49 1.23 4.3 3.8 ]\n", 215 | " [30. 0. 0. 0. 0. 0. 0. ]\n", 216 | " [44. 0. 0. 0. 0. 0. 0. ]\n", 217 | " [ 0. 0. 0. 14. 0. 0. 0. ]\n", 218 | " [ 0. 0. 0. 0. 0. 4. 0. ]\n", 219 | " [ 0. 0. 0. 0. 3. 0. 0. ]\n", 220 | " [ 0. 0. 0. 18. 0. 0. 0. ]\n", 221 | " [44. 0. 0. 0. 0. 0. 0. ]]\n", 222 | "------------------------------------------------------------------\n", 223 | "对测试集所有数据的预测结果\n", 224 | "[3, 0, 0, 1, 3, 0, 5, 5, 0, 1, 3, 0, 3, 1, 0, 0, 6, 1, 3, 2, 0, 0, 0, 0, 1, 0, 0, 0, 3, 5, 4, 3, 0]\n", 225 | "==================================================================\n" 226 | ] 227 | } 228 | ], 229 | "source": [ 230 | "lter = 1\n", 231 | "kf = KFold(n_splits,shuffle=True)\n", 232 | "for train_index,test_index in kf.split(raw_dataset):\n", 233 | " train_data = np.zeros([1,n])\n", 234 | " test_data = np.zeros([1,n])\n", 235 | " for i in train_index:\n", 236 | " row_temp = np.empty([1,n])\n", 237 | " for j in range(n):\n", 238 | " row_temp[0][j] = raw_dataset[i][j]\n", 239 | " train_data = np.append(train_data, row_temp, axis = 0)\n", 240 | " train_data = np.delete(train_data,0,axis = 0)\n", 241 | " # print(train_data)\n", 242 | " train_data_nontag = train_data[...,0:n-1]\n", 243 | " train_tag = train_data[...,n-1]\n", 244 | " tm = train_tag.size\n", 245 | " train_tag = train_tag.reshape(tm,1)\n", 246 | " # print(train_tag)\n", 247 | " min_max_scaler = preprocessing.MinMaxScaler().fit(raw_dataset[...,0:n-1])\n", 248 | " train_minmax = min_max_scaler.transform(train_data_nontag)\n", 249 | " train_minmax = np.concatenate((train_minmax,train_tag), axis=1)\n", 250 | " # print(train_minmax)\n", 251 | " np.savetxt(train_minmax_path, train_minmax, delimiter=',')\n", 252 | " train_process = DataTrain(lter,classes,train_minmax_path)\n", 253 | " train_process.start_train()\n", 254 | " # ------------------------------------------------------------------\n", 255 | " for i in test_index:\n", 256 | " row_temp = np.empty([1,n])\n", 257 | " for j in range(n):\n", 258 | " row_temp[0][j] = raw_dataset[i][j]\n", 259 | " test_data = np.append(test_data, row_temp, axis = 0)\n", 260 | " test_data = np.delete(test_data,0,axis = 0)\n", 261 | " # print(test_data)\n", 262 | " test_data_nontag = test_data[...,0:n-1]\n", 263 | " test_tag = test_data[...,n-1]\n", 264 | " tem = test_tag.size\n", 265 | " test_tag = test_tag.reshape(tem,1)\n", 266 | " # print(test_tag)\n", 267 | " test_minmax = min_max_scaler.transform(test_data_nontag)\n", 268 | " test_minmax = np.concatenate((test_minmax,test_tag), axis=1)\n", 269 | " # print(test_minmax)\n", 270 | " print('第' + str(lter) + '次迭代测试:')\n", 271 | " np.savetxt(test_minmax_path, test_minmax, delimiter=',')\n", 272 | " test_process = DataTest(classes,test_minmax_path,full_result_path)\n", 273 | " test_process.start_test()\n", 274 | " # ------------------------------------------------------------------\n", 275 | " # 合并结果\n", 276 | " present_result_path = ROOT_DIR + r'\\result\\result' + str(lter) + '.json'\n", 277 | " with open(present_result_path, 'r') as f_present_result:\n", 278 | " present_result = json.load(f_present_result)\n", 279 | " with open(full_result_path, 'r') as f_full_result:\n", 280 | " full_result = json.load(f_full_result)\n", 281 | " for cla in range(classes):\n", 282 | " full_result[str(int(cla))].extend(present_result[str(int(cla))])\n", 283 | " with open(full_result_path, 'w') as f_full_result:\n", 284 | " json.dump(full_result,f_full_result)\n", 285 | " # ------------------------------------------------------------------\n", 286 | " del train_process\n", 287 | " lter = lter + 1" 288 | ] 289 | } 290 | ], 291 | "metadata": { 292 | "kernelspec": { 293 | "display_name": "Python 3", 294 | "language": "python", 295 | "name": "python3" 296 | }, 297 | "language_info": { 298 | "codemirror_mode": { 299 | "name": "ipython", 300 | "version": 3 301 | }, 302 | "file_extension": ".py", 303 | "mimetype": "text/x-python", 304 | "name": "python", 305 | "nbconvert_exporter": "python", 306 | "pygments_lexer": "ipython3", 307 | "version": "3.7.3" 308 | } 309 | }, 310 | "nbformat": 4, 311 | "nbformat_minor": 2 312 | } 313 | -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding: utf-8 3 | 4 | # In[1]: 5 | 6 | 7 | import sys 8 | import os.path 9 | from sklearn.model_selection import KFold 10 | from sklearn import preprocessing 11 | import numpy as np 12 | np.set_printoptions(suppress=True) 13 | import json 14 | 15 | 16 | # In[2]: 17 | 18 | 19 | ROOT_DIR = os.path.dirname(os.path.abspath('__file__')) 20 | sys.path.append(os.path.join(ROOT_DIR,r'mod')) 21 | from core import DataTrain 22 | from datatest import DataTest 23 | 24 | 25 | # In[3]: 26 | 27 | 28 | raw_dataset_path = os.path.join(ROOT_DIR,r'data_set\data_transformed\raw_dataset.out') 29 | full_result_path = os.path.join(ROOT_DIR,r'result\full\full_result.json') 30 | train_minmax_path = os.path.join(ROOT_DIR,r'minmax_out\train_minmax.out') 31 | test_minmax_path = os.path.join(ROOT_DIR,r'minmax_out\test_minmax.out') 32 | 33 | 34 | # In[4]: 35 | 36 | 37 | raw_dataset = np.loadtxt(raw_dataset_path, delimiter = ',') 38 | # print(raw_dataset) 39 | 40 | 41 | # In[5]: 42 | 43 | 44 | m,n = raw_dataset.shape 45 | print(m,n) 46 | 47 | 48 | # In[6]: 49 | 50 | 51 | # KFold划分 52 | n_splits = 3 53 | 54 | 55 | # In[7]: 56 | 57 | 58 | # 数据类别数 59 | classes = 7 60 | full_result = {} 61 | for i in range(classes): 62 | full_result[str(i)] = [] 63 | with open(full_result_path, 'w') as f_full_result: 64 | json.dump(full_result,f_full_result) 65 | 66 | 67 | # In[8]: 68 | 69 | 70 | lter = 1 71 | kf = KFold(n_splits,shuffle=True) 72 | for train_index,test_index in kf.split(raw_dataset): 73 | train_data = np.zeros([1,n]) 74 | test_data = np.zeros([1,n]) 75 | for i in train_index: 76 | row_temp = np.empty([1,n]) 77 | for j in range(n): 78 | row_temp[0][j] = raw_dataset[i][j] 79 | train_data = np.append(train_data, row_temp, axis = 0) 80 | train_data = np.delete(train_data,0,axis = 0) 81 | # print(train_data) 82 | train_data_nontag = train_data[...,0:n-1] 83 | train_tag = train_data[...,n-1] 84 | tm = train_tag.size 85 | train_tag = train_tag.reshape(tm,1) 86 | # print(train_tag) 87 | min_max_scaler = preprocessing.MinMaxScaler().fit(raw_dataset[...,0:n-1]) 88 | train_minmax = min_max_scaler.transform(train_data_nontag) 89 | train_minmax = np.concatenate((train_minmax,train_tag), axis=1) 90 | # print(train_minmax) 91 | np.savetxt(train_minmax_path, train_minmax, delimiter=',') 92 | train_process = DataTrain(lter,classes,train_minmax_path) 93 | train_process.start_train() 94 | # ------------------------------------------------------------------ 95 | for i in test_index: 96 | row_temp = np.empty([1,n]) 97 | for j in range(n): 98 | row_temp[0][j] = raw_dataset[i][j] 99 | test_data = np.append(test_data, row_temp, axis = 0) 100 | test_data = np.delete(test_data,0,axis = 0) 101 | # print(test_data) 102 | test_data_nontag = test_data[...,0:n-1] 103 | test_tag = test_data[...,n-1] 104 | tem = test_tag.size 105 | test_tag = test_tag.reshape(tem,1) 106 | # print(test_tag) 107 | test_minmax = min_max_scaler.transform(test_data_nontag) 108 | test_minmax = np.concatenate((test_minmax,test_tag), axis=1) 109 | # print(test_minmax) 110 | print('第' + str(lter) + '次迭代测试:') 111 | np.savetxt(test_minmax_path, test_minmax, delimiter=',') 112 | test_process = DataTest(classes,test_minmax_path,full_result_path) 113 | test_process.start_test() 114 | # ------------------------------------------------------------------ 115 | # 合并结果 116 | present_result_path = ROOT_DIR + r'\result\result' + str(lter) + '.json' 117 | with open(present_result_path, 'r') as f_present_result: 118 | present_result = json.load(f_present_result) 119 | with open(full_result_path, 'r') as f_full_result: 120 | full_result = json.load(f_full_result) 121 | for cla in range(classes): 122 | full_result[str(int(cla))].extend(present_result[str(int(cla))]) 123 | with open(full_result_path, 'w') as f_full_result: 124 | json.dump(full_result,f_full_result) 125 | # ------------------------------------------------------------------ 126 | del train_process 127 | lter = lter + 1 128 | 129 | --------------------------------------------------------------------------------