25 분 소요

1. 인공 신경망(Artificial Neural Networks)

  • 각 특성(뉴런)에 가중치(중요도)를 바꾸며 정확한 가중치를 구하는 방법

import tensorflow as tf
import numpy as np
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense

# 모델 정의
model = Sequential([
    Dense(units = 1, input_shape = [1]) # 하나의 뉴런을 가진 하나의 층
]) 

# 모델 컴파일
model.compile(optimizer = 'sgd', loss = "mean_squared_error")

xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype = float)
ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0, 7.0], dtype = float)

# 모델 적용
model.fit(xs, ys, epochs = 500)

print(f'신경망이 학습한 것 : {model.layers[0].get_weights()}')
Result ``` Epoch 1/500 1/1 [==============================] - 0s 148ms/step - loss: 1.2064 Epoch 2/500 1/1 [==============================] - 0s 2ms/step - loss: 1.0805 Epoch 3/500 1/1 [==============================] - 0s 4ms/step - loss: 0.9787 Epoch 4/500 1/1 [==============================] - 0s 3ms/step - loss: 0.8960 Epoch 5/500 1/1 [==============================] - 0s 3ms/step - loss: 0.8283 Epoch 6/500 1/1 [==============================] - 0s 2ms/step - loss: 0.7726 Epoch 7/500 1/1 [==============================] - 0s 3ms/step - loss: 0.7262 Epoch 8/500 1/1 [==============================] - 0s 3ms/step - loss: 0.6873 Epoch 9/500 1/1 [==============================] - 0s 3ms/step - loss: 0.6543 Epoch 10/500 1/1 [==============================] - 0s 2ms/step - loss: 0.6260 Epoch 11/500 1/1 [==============================] - 0s 3ms/step - loss: 0.6015 Epoch 12/500 1/1 [==============================] - 0s 3ms/step - loss: 0.5799 Epoch 13/500 1/1 [==============================] - 0s 3ms/step - loss: 0.5608 Epoch 14/500 1/1 [==============================] - 0s 3ms/step - loss: 0.5436 Epoch 15/500 1/1 [==============================] - 0s 4ms/step - loss: 0.5279 Epoch 16/500 1/1 [==============================] - 0s 3ms/step - loss: 0.5136 Epoch 17/500 1/1 [==============================] - 0s 2ms/step - loss: 0.5002 Epoch 18/500 1/1 [==============================] - 0s 2ms/step - loss: 0.4878 Epoch 19/500 1/1 [==============================] - 0s 3ms/step - loss: 0.4761 Epoch 20/500 1/1 [==============================] - 0s 3ms/step - loss: 0.4649 Epoch 21/500 1/1 [==============================] - 0s 3ms/step - loss: 0.4543 Epoch 22/500 1/1 [==============================] - 0s 3ms/step - loss: 0.4442 Epoch 23/500 1/1 [==============================] - 0s 4ms/step - loss: 0.4344 Epoch 24/500 1/1 [==============================] - 0s 3ms/step - loss: 0.4249 Epoch 25/500 1/1 [==============================] - 0s 2ms/step - loss: 0.4158 Epoch 26/500 1/1 [==============================] - 0s 3ms/step - loss: 0.4069 Epoch 27/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3983 Epoch 28/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3899 Epoch 29/500 1/1 [==============================] - 0s 2ms/step - loss: 0.3818 Epoch 30/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3738 Epoch 31/500 1/1 [==============================] - 0s 4ms/step - loss: 0.3660 Epoch 32/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3584 Epoch 33/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3510 Epoch 34/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3438 Epoch 35/500 1/1 [==============================] - 0s 4ms/step - loss: 0.3367 Epoch 36/500 1/1 [==============================] - 0s 2ms/step - loss: 0.3297 Epoch 37/500 1/1 [==============================] - 0s 2ms/step - loss: 0.3229 Epoch 38/500 1/1 [==============================] - 0s 2ms/step - loss: 0.3163 Epoch 39/500 1/1 [==============================] - 0s 2ms/step - loss: 0.3098 Epoch 40/500 1/1 [==============================] - 0s 3ms/step - loss: 0.3034 Epoch 41/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2972 Epoch 42/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2910 Epoch 43/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2851 Epoch 44/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2792 Epoch 45/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2735 Epoch 46/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2678 Epoch 47/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2623 Epoch 48/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2569 Epoch 49/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2517 Epoch 50/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2465 Epoch 51/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2414 Epoch 52/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2365 Epoch 53/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2316 Epoch 54/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2269 Epoch 55/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2222 Epoch 56/500 1/1 [==============================] - 0s 4ms/step - loss: 0.2176 Epoch 57/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2132 Epoch 58/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2088 Epoch 59/500 1/1 [==============================] - 0s 3ms/step - loss: 0.2045 Epoch 60/500 1/1 [==============================] - 0s 2ms/step - loss: 0.2003 Epoch 61/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1962 Epoch 62/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1922 Epoch 63/500 1/1 [==============================] - 0s 4ms/step - loss: 0.1882 Epoch 64/500 1/1 [==============================] - 0s 5ms/step - loss: 0.1843 Epoch 65/500 1/1 [==============================] - 0s 7ms/step - loss: 0.1806 Epoch 66/500 1/1 [==============================] - 0s 5ms/step - loss: 0.1768 Epoch 67/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1732 Epoch 68/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1697 Epoch 69/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1662 Epoch 70/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1628 Epoch 71/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1594 Epoch 72/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1561 Epoch 73/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1529 Epoch 74/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1498 Epoch 75/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1467 Epoch 76/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1437 Epoch 77/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1407 Epoch 78/500 1/1 [==============================] - 0s 4ms/step - loss: 0.1379 Epoch 79/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1350 Epoch 80/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1323 Epoch 81/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1295 Epoch 82/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1269 Epoch 83/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1243 Epoch 84/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1217 Epoch 85/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1192 Epoch 86/500 1/1 [==============================] - 0s 4ms/step - loss: 0.1168 Epoch 87/500 1/1 [==============================] - 0s 2ms/step - loss: 0.1144 Epoch 88/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1120 Epoch 89/500 1/1 [==============================] - 0s 4ms/step - loss: 0.1097 Epoch 90/500 1/1 [==============================] - 0s 4ms/step - loss: 0.1075 Epoch 91/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1053 Epoch 92/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1031 Epoch 93/500 1/1 [==============================] - 0s 3ms/step - loss: 0.1010 Epoch 94/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0989 Epoch 95/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0969 Epoch 96/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0949 Epoch 97/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0929 Epoch 98/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0910 Epoch 99/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0892 Epoch 100/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0873 Epoch 101/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0855 Epoch 102/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0838 Epoch 103/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0821 Epoch 104/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0804 Epoch 105/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0787 Epoch 106/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0771 Epoch 107/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0755 Epoch 108/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0740 Epoch 109/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0724 Epoch 110/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0710 Epoch 111/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0695 Epoch 112/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0681 Epoch 113/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0667 Epoch 114/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0653 Epoch 115/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0640 Epoch 116/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0626 Epoch 117/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0614 Epoch 118/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0601 Epoch 119/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0589 Epoch 120/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0577 Epoch 121/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0565 Epoch 122/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0553 Epoch 123/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0542 Epoch 124/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0531 Epoch 125/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0520 Epoch 126/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0509 Epoch 127/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0499 Epoch 128/500 1/1 [==============================] - 0s 5ms/step - loss: 0.0488 Epoch 129/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0478 Epoch 130/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0469 Epoch 131/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0459 Epoch 132/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0449 Epoch 133/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0440 Epoch 134/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0431 Epoch 135/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0422 Epoch 136/500 1/1 [==============================] - 0s 8ms/step - loss: 0.0414 Epoch 137/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0405 Epoch 138/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0397 Epoch 139/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0389 Epoch 140/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0381 Epoch 141/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0373 Epoch 142/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0365 Epoch 143/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0358 Epoch 144/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0350 Epoch 145/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0343 Epoch 146/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0336 Epoch 147/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0329 Epoch 148/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0322 Epoch 149/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0316 Epoch 150/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0309 Epoch 151/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0303 Epoch 152/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0297 Epoch 153/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0291 Epoch 154/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0285 Epoch 155/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0279 Epoch 156/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0273 Epoch 157/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0268 Epoch 158/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0262 Epoch 159/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0257 Epoch 160/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0251 Epoch 161/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0246 Epoch 162/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0241 Epoch 163/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0236 Epoch 164/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0231 Epoch 165/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0227 Epoch 166/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0222 Epoch 167/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0217 Epoch 168/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0213 Epoch 169/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0209 Epoch 170/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0204 Epoch 171/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0200 Epoch 172/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0196 Epoch 173/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0192 Epoch 174/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0188 Epoch 175/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0184 Epoch 176/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0180 Epoch 177/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0177 Epoch 178/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0173 Epoch 179/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0169 Epoch 180/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0166 Epoch 181/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0163 Epoch 182/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0159 Epoch 183/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0156 Epoch 184/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0153 Epoch 185/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0150 Epoch 186/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0147 Epoch 187/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0144 Epoch 188/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0141 Epoch 189/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0138 Epoch 190/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0135 Epoch 191/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0132 Epoch 192/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0129 Epoch 193/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0127 Epoch 194/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0124 Epoch 195/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0122 Epoch 196/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0119 Epoch 197/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0117 Epoch 198/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0114 Epoch 199/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0112 Epoch 200/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0110 Epoch 201/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0107 Epoch 202/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0105 Epoch 203/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0103 Epoch 204/500 1/1 [==============================] - 0s 5ms/step - loss: 0.0101 Epoch 205/500 1/1 [==============================] - 0s 8ms/step - loss: 0.0099 Epoch 206/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0097 Epoch 207/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0095 Epoch 208/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0093 Epoch 209/500 1/1 [==============================] - 0s 6ms/step - loss: 0.0091 Epoch 210/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0089 Epoch 211/500 1/1 [==============================] - 0s 7ms/step - loss: 0.0087 Epoch 212/500 1/1 [==============================] - 0s 5ms/step - loss: 0.0085 Epoch 213/500 1/1 [==============================] - 0s 9ms/step - loss: 0.0084 Epoch 214/500 1/1 [==============================] - 0s 9ms/step - loss: 0.0082 Epoch 215/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0080 Epoch 216/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0079 Epoch 217/500 1/1 [==============================] - 0s 5ms/step - loss: 0.0077 Epoch 218/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0075 Epoch 219/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0074 Epoch 220/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0072 Epoch 221/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0071 Epoch 222/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0069 Epoch 223/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0068 Epoch 224/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0067 Epoch 225/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0065 Epoch 226/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0064 Epoch 227/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0063 Epoch 228/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0061 Epoch 229/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0060 Epoch 230/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0059 Epoch 231/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0058 Epoch 232/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0056 Epoch 233/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0055 Epoch 234/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0054 Epoch 235/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0053 Epoch 236/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0052 Epoch 237/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0051 Epoch 238/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0050 Epoch 239/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0049 Epoch 240/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0048 Epoch 241/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0047 Epoch 242/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0046 Epoch 243/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0045 Epoch 244/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0044 Epoch 245/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0043 Epoch 246/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0042 Epoch 247/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0041 Epoch 248/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0040 Epoch 249/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0040 Epoch 250/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0039 Epoch 251/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0038 Epoch 252/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0037 Epoch 253/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0036 Epoch 254/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0036 Epoch 255/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0035 Epoch 256/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0034 Epoch 257/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0034 Epoch 258/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0033 Epoch 259/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0032 Epoch 260/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0032 Epoch 261/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0031 Epoch 262/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0030 Epoch 263/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0030 Epoch 264/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0029 Epoch 265/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0028 Epoch 266/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0028 Epoch 267/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0027 Epoch 268/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0027 Epoch 269/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0026 Epoch 270/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0026 Epoch 271/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0025 Epoch 272/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0025 Epoch 273/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0024 Epoch 274/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0024 Epoch 275/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0023 Epoch 276/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0023 Epoch 277/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0022 Epoch 278/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0022 Epoch 279/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0021 Epoch 280/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0021 Epoch 281/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0020 Epoch 282/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0020 Epoch 283/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0020 Epoch 284/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0019 Epoch 285/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0019 Epoch 286/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0018 Epoch 287/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0018 Epoch 288/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0018 Epoch 289/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0017 Epoch 290/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0017 Epoch 291/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0017 Epoch 292/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0016 Epoch 293/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0016 Epoch 294/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0016 Epoch 295/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0015 Epoch 296/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0015 Epoch 297/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0015 Epoch 298/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0014 Epoch 299/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0014 Epoch 300/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0014 Epoch 301/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0013 Epoch 302/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0013 Epoch 303/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0013 Epoch 304/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0013 Epoch 305/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0012 Epoch 306/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0012 Epoch 307/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0012 Epoch 308/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0012 Epoch 309/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0011 Epoch 310/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0011 Epoch 311/500 1/1 [==============================] - 0s 3ms/step - loss: 0.0011 Epoch 312/500 1/1 [==============================] - 0s 4ms/step - loss: 0.0011 Epoch 313/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0011 Epoch 314/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0010 Epoch 315/500 1/1 [==============================] - 0s 2ms/step - loss: 0.0010 Epoch 316/500 1/1 [==============================] - 0s 2ms/step - loss: 9.8673e-04 Epoch 317/500 1/1 [==============================] - 0s 3ms/step - loss: 9.6646e-04 Epoch 318/500 1/1 [==============================] - 0s 2ms/step - loss: 9.4661e-04 Epoch 319/500 1/1 [==============================] - 0s 2ms/step - loss: 9.2717e-04 Epoch 320/500 1/1 [==============================] - 0s 2ms/step - loss: 9.0813e-04 Epoch 321/500 1/1 [==============================] - 0s 4ms/step - loss: 8.8947e-04 Epoch 322/500 1/1 [==============================] - 0s 3ms/step - loss: 8.7120e-04 Epoch 323/500 1/1 [==============================] - 0s 2ms/step - loss: 8.5331e-04 Epoch 324/500 1/1 [==============================] - 0s 2ms/step - loss: 8.3578e-04 Epoch 325/500 1/1 [==============================] - 0s 2ms/step - loss: 8.1861e-04 Epoch 326/500 1/1 [==============================] - 0s 3ms/step - loss: 8.0179e-04 Epoch 327/500 1/1 [==============================] - 0s 2ms/step - loss: 7.8532e-04 Epoch 328/500 1/1 [==============================] - 0s 2ms/step - loss: 7.6919e-04 Epoch 329/500 1/1 [==============================] - 0s 3ms/step - loss: 7.5339e-04 Epoch 330/500 1/1 [==============================] - 0s 3ms/step - loss: 7.3792e-04 Epoch 331/500 1/1 [==============================] - 0s 3ms/step - loss: 7.2276e-04 Epoch 332/500 1/1 [==============================] - 0s 2ms/step - loss: 7.0791e-04 Epoch 333/500 1/1 [==============================] - 0s 3ms/step - loss: 6.9337e-04 Epoch 334/500 1/1 [==============================] - 0s 2ms/step - loss: 6.7913e-04 Epoch 335/500 1/1 [==============================] - 0s 4ms/step - loss: 6.6518e-04 Epoch 336/500 1/1 [==============================] - 0s 3ms/step - loss: 6.5152e-04 Epoch 337/500 1/1 [==============================] - 0s 2ms/step - loss: 6.3814e-04 Epoch 338/500 1/1 [==============================] - 0s 2ms/step - loss: 6.2503e-04 Epoch 339/500 1/1 [==============================] - 0s 3ms/step - loss: 6.1219e-04 Epoch 340/500 1/1 [==============================] - 0s 2ms/step - loss: 5.9962e-04 Epoch 341/500 1/1 [==============================] - 0s 2ms/step - loss: 5.8730e-04 Epoch 342/500 1/1 [==============================] - 0s 2ms/step - loss: 5.7524e-04 Epoch 343/500 1/1 [==============================] - 0s 2ms/step - loss: 5.6342e-04 Epoch 344/500 1/1 [==============================] - 0s 4ms/step - loss: 5.5185e-04 Epoch 345/500 1/1 [==============================] - 0s 3ms/step - loss: 5.4051e-04 Epoch 346/500 1/1 [==============================] - 0s 2ms/step - loss: 5.2941e-04 Epoch 347/500 1/1 [==============================] - 0s 3ms/step - loss: 5.1853e-04 Epoch 348/500 1/1 [==============================] - 0s 3ms/step - loss: 5.0789e-04 Epoch 349/500 1/1 [==============================] - 0s 2ms/step - loss: 4.9745e-04 Epoch 350/500 1/1 [==============================] - 0s 2ms/step - loss: 4.8723e-04 Epoch 351/500 1/1 [==============================] - 0s 2ms/step - loss: 4.7723e-04 Epoch 352/500 1/1 [==============================] - 0s 2ms/step - loss: 4.6743e-04 Epoch 353/500 1/1 [==============================] - 0s 3ms/step - loss: 4.5783e-04 Epoch 354/500 1/1 [==============================] - 0s 3ms/step - loss: 4.4842e-04 Epoch 355/500 1/1 [==============================] - 0s 3ms/step - loss: 4.3921e-04 Epoch 356/500 1/1 [==============================] - 0s 3ms/step - loss: 4.3019e-04 Epoch 357/500 1/1 [==============================] - 0s 7ms/step - loss: 4.2135e-04 Epoch 358/500 1/1 [==============================] - 0s 3ms/step - loss: 4.1269e-04 Epoch 359/500 1/1 [==============================] - 0s 5ms/step - loss: 4.0422e-04 Epoch 360/500 1/1 [==============================] - 0s 3ms/step - loss: 3.9592e-04 Epoch 361/500 1/1 [==============================] - 0s 2ms/step - loss: 3.8779e-04 Epoch 362/500 1/1 [==============================] - 0s 3ms/step - loss: 3.7982e-04 Epoch 363/500 1/1 [==============================] - 0s 4ms/step - loss: 3.7202e-04 Epoch 364/500 1/1 [==============================] - 0s 3ms/step - loss: 3.6438e-04 Epoch 365/500 1/1 [==============================] - 0s 3ms/step - loss: 3.5689e-04 Epoch 366/500 1/1 [==============================] - 0s 5ms/step - loss: 3.4956e-04 Epoch 367/500 1/1 [==============================] - 0s 3ms/step - loss: 3.4238e-04 Epoch 368/500 1/1 [==============================] - 0s 2ms/step - loss: 3.3534e-04 Epoch 369/500 1/1 [==============================] - 0s 2ms/step - loss: 3.2846e-04 Epoch 370/500 1/1 [==============================] - 0s 3ms/step - loss: 3.2171e-04 Epoch 371/500 1/1 [==============================] - 0s 3ms/step - loss: 3.1510e-04 Epoch 372/500 1/1 [==============================] - 0s 2ms/step - loss: 3.0863e-04 Epoch 373/500 1/1 [==============================] - 0s 3ms/step - loss: 3.0229e-04 Epoch 374/500 1/1 [==============================] - 0s 2ms/step - loss: 2.9608e-04 Epoch 375/500 1/1 [==============================] - 0s 3ms/step - loss: 2.9000e-04 Epoch 376/500 1/1 [==============================] - 0s 3ms/step - loss: 2.8404e-04 Epoch 377/500 1/1 [==============================] - 0s 2ms/step - loss: 2.7821e-04 Epoch 378/500 1/1 [==============================] - 0s 2ms/step - loss: 2.7249e-04 Epoch 379/500 1/1 [==============================] - 0s 2ms/step - loss: 2.6690e-04 Epoch 380/500 1/1 [==============================] - 0s 3ms/step - loss: 2.6142e-04 Epoch 381/500 1/1 [==============================] - 0s 2ms/step - loss: 2.5605e-04 Epoch 382/500 1/1 [==============================] - 0s 2ms/step - loss: 2.5079e-04 Epoch 383/500 1/1 [==============================] - 0s 2ms/step - loss: 2.4564e-04 Epoch 384/500 1/1 [==============================] - 0s 4ms/step - loss: 2.4059e-04 Epoch 385/500 1/1 [==============================] - 0s 2ms/step - loss: 2.3565e-04 Epoch 386/500 1/1 [==============================] - 0s 3ms/step - loss: 2.3081e-04 Epoch 387/500 1/1 [==============================] - 0s 3ms/step - loss: 2.2607e-04 Epoch 388/500 1/1 [==============================] - 0s 3ms/step - loss: 2.2142e-04 Epoch 389/500 1/1 [==============================] - 0s 3ms/step - loss: 2.1687e-04 Epoch 390/500 1/1 [==============================] - 0s 2ms/step - loss: 2.1242e-04 Epoch 391/500 1/1 [==============================] - 0s 2ms/step - loss: 2.0806e-04 Epoch 392/500 1/1 [==============================] - 0s 2ms/step - loss: 2.0378e-04 Epoch 393/500 1/1 [==============================] - 0s 3ms/step - loss: 1.9960e-04 Epoch 394/500 1/1 [==============================] - 0s 2ms/step - loss: 1.9550e-04 Epoch 395/500 1/1 [==============================] - 0s 2ms/step - loss: 1.9148e-04 Epoch 396/500 1/1 [==============================] - 0s 3ms/step - loss: 1.8755e-04 Epoch 397/500 1/1 [==============================] - 0s 3ms/step - loss: 1.8370e-04 Epoch 398/500 1/1 [==============================] - 0s 3ms/step - loss: 1.7992e-04 Epoch 399/500 1/1 [==============================] - 0s 2ms/step - loss: 1.7623e-04 Epoch 400/500 1/1 [==============================] - 0s 2ms/step - loss: 1.7261e-04 Epoch 401/500 1/1 [==============================] - 0s 3ms/step - loss: 1.6906e-04 Epoch 402/500 1/1 [==============================] - 0s 4ms/step - loss: 1.6559e-04 Epoch 403/500 1/1 [==============================] - 0s 2ms/step - loss: 1.6219e-04 Epoch 404/500 1/1 [==============================] - 0s 2ms/step - loss: 1.5886e-04 Epoch 405/500 1/1 [==============================] - 0s 3ms/step - loss: 1.5559e-04 Epoch 406/500 1/1 [==============================] - 0s 3ms/step - loss: 1.5240e-04 Epoch 407/500 1/1 [==============================] - 0s 2ms/step - loss: 1.4927e-04 Epoch 408/500 1/1 [==============================] - 0s 2ms/step - loss: 1.4620e-04 Epoch 409/500 1/1 [==============================] - 0s 3ms/step - loss: 1.4320e-04 Epoch 410/500 1/1 [==============================] - 0s 4ms/step - loss: 1.4026e-04 Epoch 411/500 1/1 [==============================] - 0s 2ms/step - loss: 1.3738e-04 Epoch 412/500 1/1 [==============================] - 0s 2ms/step - loss: 1.3455e-04 Epoch 413/500 1/1 [==============================] - 0s 3ms/step - loss: 1.3179e-04 Epoch 414/500 1/1 [==============================] - 0s 3ms/step - loss: 1.2908e-04 Epoch 415/500 1/1 [==============================] - 0s 2ms/step - loss: 1.2643e-04 Epoch 416/500 1/1 [==============================] - 0s 2ms/step - loss: 1.2384e-04 Epoch 417/500 1/1 [==============================] - 0s 3ms/step - loss: 1.2129e-04 Epoch 418/500 1/1 [==============================] - 0s 2ms/step - loss: 1.1880e-04 Epoch 419/500 1/1 [==============================] - 0s 3ms/step - loss: 1.1636e-04 Epoch 420/500 1/1 [==============================] - 0s 2ms/step - loss: 1.1397e-04 Epoch 421/500 1/1 [==============================] - 0s 2ms/step - loss: 1.1163e-04 Epoch 422/500 1/1 [==============================] - 0s 3ms/step - loss: 1.0934e-04 Epoch 423/500 1/1 [==============================] - 0s 3ms/step - loss: 1.0709e-04 Epoch 424/500 1/1 [==============================] - 0s 3ms/step - loss: 1.0489e-04 Epoch 425/500 1/1 [==============================] - 0s 2ms/step - loss: 1.0274e-04 Epoch 426/500 1/1 [==============================] - 0s 2ms/step - loss: 1.0062e-04 Epoch 427/500 1/1 [==============================] - 0s 3ms/step - loss: 9.8558e-05 Epoch 428/500 1/1 [==============================] - 0s 3ms/step - loss: 9.6533e-05 Epoch 429/500 1/1 [==============================] - 0s 2ms/step - loss: 9.4552e-05 Epoch 430/500 1/1 [==============================] - 0s 2ms/step - loss: 9.2609e-05 Epoch 431/500 1/1 [==============================] - 0s 3ms/step - loss: 9.0707e-05 Epoch 432/500 1/1 [==============================] - 0s 3ms/step - loss: 8.8844e-05 Epoch 433/500 1/1 [==============================] - 0s 3ms/step - loss: 8.7017e-05 Epoch 434/500 1/1 [==============================] - 0s 2ms/step - loss: 8.5231e-05 Epoch 435/500 1/1 [==============================] - 0s 2ms/step - loss: 8.3480e-05 Epoch 436/500 1/1 [==============================] - 0s 3ms/step - loss: 8.1767e-05 Epoch 437/500 1/1 [==============================] - 0s 2ms/step - loss: 8.0086e-05 Epoch 438/500 1/1 [==============================] - 0s 2ms/step - loss: 7.8441e-05 Epoch 439/500 1/1 [==============================] - 0s 2ms/step - loss: 7.6829e-05 Epoch 440/500 1/1 [==============================] - 0s 3ms/step - loss: 7.5252e-05 Epoch 441/500 1/1 [==============================] - 0s 3ms/step - loss: 7.3707e-05 Epoch 442/500 1/1 [==============================] - 0s 2ms/step - loss: 7.2192e-05 Epoch 443/500 1/1 [==============================] - 0s 2ms/step - loss: 7.0710e-05 Epoch 444/500 1/1 [==============================] - 0s 2ms/step - loss: 6.9257e-05 Epoch 445/500 1/1 [==============================] - 0s 3ms/step - loss: 6.7835e-05 Epoch 446/500 1/1 [==============================] - 0s 2ms/step - loss: 6.6442e-05 Epoch 447/500 1/1 [==============================] - 0s 2ms/step - loss: 6.5077e-05 Epoch 448/500 1/1 [==============================] - 0s 3ms/step - loss: 6.3741e-05 Epoch 449/500 1/1 [==============================] - 0s 3ms/step - loss: 6.2430e-05 Epoch 450/500 1/1 [==============================] - 0s 3ms/step - loss: 6.1148e-05 Epoch 451/500 1/1 [==============================] - 0s 3ms/step - loss: 5.9893e-05 Epoch 452/500 1/1 [==============================] - 0s 2ms/step - loss: 5.8663e-05 Epoch 453/500 1/1 [==============================] - 0s 2ms/step - loss: 5.7457e-05 Epoch 454/500 1/1 [==============================] - 0s 3ms/step - loss: 5.6276e-05 Epoch 455/500 1/1 [==============================] - 0s 2ms/step - loss: 5.5121e-05 Epoch 456/500 1/1 [==============================] - 0s 3ms/step - loss: 5.3989e-05 Epoch 457/500 1/1 [==============================] - 0s 2ms/step - loss: 5.2879e-05 Epoch 458/500 1/1 [==============================] - 0s 3ms/step - loss: 5.1794e-05 Epoch 459/500 1/1 [==============================] - 0s 3ms/step - loss: 5.0730e-05 Epoch 460/500 1/1 [==============================] - 0s 2ms/step - loss: 4.9688e-05 Epoch 461/500 1/1 [==============================] - 0s 2ms/step - loss: 4.8667e-05 Epoch 462/500 1/1 [==============================] - 0s 2ms/step - loss: 4.7668e-05 Epoch 463/500 1/1 [==============================] - 0s 4ms/step - loss: 4.6688e-05 Epoch 464/500 1/1 [==============================] - 0s 2ms/step - loss: 4.5730e-05 Epoch 465/500 1/1 [==============================] - 0s 2ms/step - loss: 4.4790e-05 Epoch 466/500 1/1 [==============================] - 0s 3ms/step - loss: 4.3870e-05 Epoch 467/500 1/1 [==============================] - 0s 5ms/step - loss: 4.2968e-05 Epoch 468/500 1/1 [==============================] - 0s 2ms/step - loss: 4.2086e-05 Epoch 469/500 1/1 [==============================] - 0s 2ms/step - loss: 4.1221e-05 Epoch 470/500 1/1 [==============================] - 0s 3ms/step - loss: 4.0375e-05 Epoch 471/500 1/1 [==============================] - 0s 5ms/step - loss: 3.9545e-05 Epoch 472/500 1/1 [==============================] - 0s 2ms/step - loss: 3.8733e-05 Epoch 473/500 1/1 [==============================] - 0s 2ms/step - loss: 3.7938e-05 Epoch 474/500 1/1 [==============================] - 0s 3ms/step - loss: 3.7158e-05 Epoch 475/500 1/1 [==============================] - 0s 4ms/step - loss: 3.6395e-05 Epoch 476/500 1/1 [==============================] - 0s 2ms/step - loss: 3.5647e-05 Epoch 477/500 1/1 [==============================] - 0s 3ms/step - loss: 3.4915e-05 Epoch 478/500 1/1 [==============================] - 0s 3ms/step - loss: 3.4198e-05 Epoch 479/500 1/1 [==============================] - 0s 3ms/step - loss: 3.3495e-05 Epoch 480/500 1/1 [==============================] - 0s 2ms/step - loss: 3.2807e-05 Epoch 481/500 1/1 [==============================] - 0s 2ms/step - loss: 3.2133e-05 Epoch 482/500 1/1 [==============================] - 0s 2ms/step - loss: 3.1473e-05 Epoch 483/500 1/1 [==============================] - 0s 3ms/step - loss: 3.0827e-05 Epoch 484/500 1/1 [==============================] - 0s 2ms/step - loss: 3.0193e-05 Epoch 485/500 1/1 [==============================] - 0s 3ms/step - loss: 2.9573e-05 Epoch 486/500 1/1 [==============================] - 0s 3ms/step - loss: 2.8966e-05 Epoch 487/500 1/1 [==============================] - 0s 4ms/step - loss: 2.8370e-05 Epoch 488/500 1/1 [==============================] - 0s 3ms/step - loss: 2.7787e-05 Epoch 489/500 1/1 [==============================] - 0s 2ms/step - loss: 2.7218e-05 Epoch 490/500 1/1 [==============================] - 0s 2ms/step - loss: 2.6658e-05 Epoch 491/500 1/1 [==============================] - 0s 3ms/step - loss: 2.6111e-05 Epoch 492/500 1/1 [==============================] - 0s 3ms/step - loss: 2.5574e-05 Epoch 493/500 1/1 [==============================] - 0s 2ms/step - loss: 2.5049e-05 Epoch 494/500 1/1 [==============================] - 0s 2ms/step - loss: 2.4535e-05 Epoch 495/500 1/1 [==============================] - 0s 2ms/step - loss: 2.4031e-05 Epoch 496/500 1/1 [==============================] - 0s 3ms/step - loss: 2.3537e-05 Epoch 497/500 1/1 [==============================] - 0s 3ms/step - loss: 2.3054e-05 Epoch 498/500 1/1 [==============================] - 0s 3ms/step - loss: 2.2580e-05 Epoch 499/500 1/1 [==============================] - 0s 2ms/step - loss: 2.2116e-05 Epoch 500/500 1/1 [==============================] - 0s 3ms/step - loss: 2.1662e-05 신경망이 학습한 것 : [array([[1.9980319]], dtype=float32), array([-0.99389833], dtype=float32)] ```