Skip to content

Instantly share code, notes, and snippets.

@mentix02
Created May 28, 2023 03:22
Show Gist options
  • Save mentix02/a9ca46c4d7f1631c6be986686675dffe to your computer and use it in GitHub Desktop.
Save mentix02/a9ca46c4d7f1631c6be986686675dffe to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "89459136",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import tensorflow as tf\n",
"from tensorflow import keras\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "3add5fd2",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2022-07-06 15:14:58.366124: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA\n",
"To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n"
]
}
],
"source": [
"# define model\n",
"model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "9b27ea15",
"metadata": {},
"outputs": [],
"source": [
"# use the sgd optimizer\n",
"model.compile(optimizer='sgd', loss='mean_squared_error')"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "52a773c6",
"metadata": {},
"outputs": [],
"source": [
"# map a simple f(x) = 3 * x + 1\n",
"xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)\n",
"ys = np.array([-2.0, 1.0, 4.0, 7.0, 10.0, 13.0], dtype=float)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "c76c2829",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD4CAYAAADxeG0DAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliL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oi8iEuAC8ohcRET+j4pcRCTAqchFRAKcilxEJMCpyEVEApyKXEQkwKnIRUQC3P8CCKMcCCRlU9sAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"# Create a figure containing a single axes.\n",
"fig, ax = plt.subplots()\n",
"ax.plot(xs, ys);"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "0445ac40",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch 1/500\n",
"1/1 [==============================] - 0s 197ms/step - loss: 110.2249\n",
"Epoch 2/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 86.7335\n",
"Epoch 3/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 68.2513\n",
"Epoch 4/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 53.7102\n",
"Epoch 5/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 42.2696\n",
"Epoch 6/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 33.2684\n",
"Epoch 7/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 26.1865\n",
"Epoch 8/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 20.6145\n",
"Epoch 9/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 16.2305\n",
"Epoch 10/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 12.7811\n",
"Epoch 11/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 10.0671\n",
"Epoch 12/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.9316\n",
"Epoch 13/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.2512\n",
"Epoch 14/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.9290\n",
"Epoch 15/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 3.8885\n",
"Epoch 16/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 3.0696\n",
"Epoch 17/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.4252\n",
"Epoch 18/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.9180\n",
"Epoch 19/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5187\n",
"Epoch 20/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2044\n",
"Epoch 21/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.9569\n",
"Epoch 22/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.7620\n",
"Epoch 23/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.6085\n",
"Epoch 24/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.4875\n",
"Epoch 25/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.3922\n",
"Epoch 26/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.3170\n",
"Epoch 27/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.2576\n",
"Epoch 28/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.2108\n",
"Epoch 29/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.1737\n",
"Epoch 30/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.1444\n",
"Epoch 31/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.1212\n",
"Epoch 32/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.1028\n",
"Epoch 33/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0882\n",
"Epoch 34/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0765\n",
"Epoch 35/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0672\n",
"Epoch 36/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0597\n",
"Epoch 37/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0537\n",
"Epoch 38/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0488\n",
"Epoch 39/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0448\n",
"Epoch 40/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0416\n",
"Epoch 41/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0389\n",
"Epoch 42/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0366\n",
"Epoch 43/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0347\n",
"Epoch 44/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0331\n",
"Epoch 45/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0318\n",
"Epoch 46/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0305\n",
"Epoch 47/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0295\n",
"Epoch 48/500\n",
"1/1 [==============================] - 0s 7ms/step - loss: 0.0285\n",
"Epoch 49/500\n",
"1/1 [==============================] - 0s 6ms/step - loss: 0.0277\n",
"Epoch 50/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0269\n",
"Epoch 51/500\n",
"1/1 [==============================] - 0s 9ms/step - loss: 0.0262\n",
"Epoch 52/500\n",
"1/1 [==============================] - 0s 6ms/step - loss: 0.0255\n",
"Epoch 53/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0249\n",
"Epoch 54/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0243\n",
"Epoch 55/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0237\n",
"Epoch 56/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0232\n",
"Epoch 57/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0227\n",
"Epoch 58/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0222\n",
"Epoch 59/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0217\n",
"Epoch 60/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0212\n",
"Epoch 61/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0208\n",
"Epoch 62/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0203\n",
"Epoch 63/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0199\n",
"Epoch 64/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0195\n",
"Epoch 65/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0191\n",
"Epoch 66/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0187\n",
"Epoch 67/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0183\n",
"Epoch 68/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0179\n",
"Epoch 69/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0176\n",
"Epoch 70/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0172\n",
"Epoch 71/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0168\n",
"Epoch 72/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0165\n",
"Epoch 73/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0162\n",
"Epoch 74/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0158\n",
"Epoch 75/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0155\n",
"Epoch 76/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0152\n",
"Epoch 77/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0149\n",
"Epoch 78/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0146\n",
"Epoch 79/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0143\n",
"Epoch 80/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0140\n",
"Epoch 81/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0137\n",
"Epoch 82/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0134\n",
"Epoch 83/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0131\n",
"Epoch 84/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0129\n",
"Epoch 85/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0126\n",
"Epoch 86/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0123\n",
"Epoch 87/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0121\n",
"Epoch 88/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0118\n",
"Epoch 89/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0116\n",
"Epoch 90/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0113\n",
"Epoch 91/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0111\n",
"Epoch 92/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0109\n",
"Epoch 93/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0107\n",
"Epoch 94/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0104\n",
"Epoch 95/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0102\n",
"Epoch 96/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0100\n",
"Epoch 97/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0098\n",
"Epoch 98/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0096\n",
"Epoch 99/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0094\n",
"Epoch 100/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0092\n",
"Epoch 101/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0090\n",
"Epoch 102/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0088\n",
"Epoch 103/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0087\n",
"Epoch 104/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0085\n",
"Epoch 105/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0083\n",
"Epoch 106/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0081\n",
"Epoch 107/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0080\n",
"Epoch 108/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0078\n",
"Epoch 109/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0077\n",
"Epoch 110/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0075\n",
"Epoch 111/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0073\n",
"Epoch 112/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0072\n",
"Epoch 113/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0070\n",
"Epoch 114/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0069\n",
"Epoch 115/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0068\n",
"Epoch 116/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0066\n",
"Epoch 117/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0065\n",
"Epoch 118/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0063\n",
"Epoch 119/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0062\n",
"Epoch 120/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0061\n",
"Epoch 121/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0060\n",
"Epoch 122/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0058\n",
"Epoch 123/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0057\n",
"Epoch 124/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0056\n",
"Epoch 125/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0055\n",
"Epoch 126/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0054\n",
"Epoch 127/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0053\n",
"Epoch 128/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0052\n",
"Epoch 129/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0051\n",
"Epoch 130/500\n",
"1/1 [==============================] - 0s 7ms/step - loss: 0.0049\n",
"Epoch 131/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0048\n",
"Epoch 132/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0047\n",
"Epoch 133/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0046\n",
"Epoch 134/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0046\n",
"Epoch 135/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0045\n",
"Epoch 136/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0044\n",
"Epoch 137/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0043\n",
"Epoch 138/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0042\n",
"Epoch 139/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0041\n",
"Epoch 140/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0040\n",
"Epoch 141/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0039\n",
"Epoch 142/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0039\n",
"Epoch 143/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0038\n",
"Epoch 144/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0037\n",
"Epoch 145/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0036\n",
"Epoch 146/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0035\n",
"Epoch 147/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0035\n",
"Epoch 148/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0034\n",
"Epoch 149/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0033\n",
"Epoch 150/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0033\n",
"Epoch 151/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0032\n",
"Epoch 152/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0031\n",
"Epoch 153/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0031\n",
"Epoch 154/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0030\n",
"Epoch 155/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0029\n",
"Epoch 156/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0029\n",
"Epoch 157/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0028\n",
"Epoch 158/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0028\n",
"Epoch 159/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0027\n",
"Epoch 160/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0027\n",
"Epoch 161/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0026\n",
"Epoch 162/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0025\n",
"Epoch 163/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0025\n",
"Epoch 164/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0024\n",
"Epoch 165/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0024\n",
"Epoch 166/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0023\n",
"Epoch 167/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0023\n",
"Epoch 168/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0022\n",
"Epoch 169/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0022\n",
"Epoch 170/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0022\n",
"Epoch 171/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0021\n",
"Epoch 172/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0021\n",
"Epoch 173/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0020\n",
"Epoch 174/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0020\n",
"Epoch 175/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0019\n",
"Epoch 176/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0019\n",
"Epoch 177/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0019\n",
"Epoch 178/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0018\n",
"Epoch 179/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0018\n",
"Epoch 180/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0018\n",
"Epoch 181/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0017\n",
"Epoch 182/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0017\n",
"Epoch 183/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0016\n",
"Epoch 184/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0016\n",
"Epoch 185/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0016\n",
"Epoch 186/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0015\n",
"Epoch 187/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 0.0015\n",
"Epoch 188/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0015\n",
"Epoch 189/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0015\n",
"Epoch 190/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0014\n",
"Epoch 191/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0014\n",
"Epoch 192/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 0.0014\n",
"Epoch 193/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0013\n",
"Epoch 194/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 0.0013\n",
"Epoch 195/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0013\n",
"Epoch 196/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0013\n",
"Epoch 197/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0012\n",
"Epoch 198/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0012\n",
"Epoch 199/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0012\n",
"Epoch 200/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0012\n",
"Epoch 201/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0011\n",
"Epoch 202/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0011\n",
"Epoch 203/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0011\n",
"Epoch 204/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0011\n",
"Epoch 205/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0010\n",
"Epoch 206/500\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 0s 3ms/step - loss: 0.0010\n",
"Epoch 207/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 0.0010\n",
"Epoch 208/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.8024e-04\n",
"Epoch 209/500\n",
"1/1 [==============================] - 0s 6ms/step - loss: 9.6011e-04\n",
"Epoch 210/500\n",
"1/1 [==============================] - 0s 6ms/step - loss: 9.4039e-04\n",
"Epoch 211/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 9.2107e-04\n",
"Epoch 212/500\n",
"1/1 [==============================] - 0s 5ms/step - loss: 9.0215e-04\n",
"Epoch 213/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.8362e-04\n",
"Epoch 214/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 8.6547e-04\n",
"Epoch 215/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.4769e-04\n",
"Epoch 216/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.3028e-04\n",
"Epoch 217/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 8.1322e-04\n",
"Epoch 218/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.9652e-04\n",
"Epoch 219/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.8016e-04\n",
"Epoch 220/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.6414e-04\n",
"Epoch 221/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.4844e-04\n",
"Epoch 222/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 7.3307e-04\n",
"Epoch 223/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 7.1801e-04\n",
"Epoch 224/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.0326e-04\n",
"Epoch 225/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.8882e-04\n",
"Epoch 226/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.7467e-04\n",
"Epoch 227/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 6.6081e-04\n",
"Epoch 228/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.4724e-04\n",
"Epoch 229/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.3394e-04\n",
"Epoch 230/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.2092e-04\n",
"Epoch 231/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.0816e-04\n",
"Epoch 232/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.9567e-04\n",
"Epoch 233/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.8343e-04\n",
"Epoch 234/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 5.7145e-04\n",
"Epoch 235/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 5.5971e-04\n",
"Epoch 236/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.4822e-04\n",
"Epoch 237/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.3695e-04\n",
"Epoch 238/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.2593e-04\n",
"Epoch 239/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.1512e-04\n",
"Epoch 240/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.0454e-04\n",
"Epoch 241/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.9418e-04\n",
"Epoch 242/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.8403e-04\n",
"Epoch 243/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.7409e-04\n",
"Epoch 244/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.6434e-04\n",
"Epoch 245/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.5481e-04\n",
"Epoch 246/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 4.4546e-04\n",
"Epoch 247/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 4.3632e-04\n",
"Epoch 248/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.2736e-04\n",
"Epoch 249/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.1858e-04\n",
"Epoch 250/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 4.0998e-04\n",
"Epoch 251/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 4.0156e-04\n",
"Epoch 252/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.9331e-04\n",
"Epoch 253/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.8523e-04\n",
"Epoch 254/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.7731e-04\n",
"Epoch 255/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.6957e-04\n",
"Epoch 256/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.6197e-04\n",
"Epoch 257/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.5454e-04\n",
"Epoch 258/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.4726e-04\n",
"Epoch 259/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.4012e-04\n",
"Epoch 260/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.3314e-04\n",
"Epoch 261/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.2629e-04\n",
"Epoch 262/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.1959e-04\n",
"Epoch 263/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.1303e-04\n",
"Epoch 264/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.0660e-04\n",
"Epoch 265/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.0030e-04\n",
"Epoch 266/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 2.9413e-04\n",
"Epoch 267/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 2.8809e-04\n",
"Epoch 268/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 2.8217e-04\n",
"Epoch 269/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.7637e-04\n",
"Epoch 270/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.7070e-04\n",
"Epoch 271/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.6514e-04\n",
"Epoch 272/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.5969e-04\n",
"Epoch 273/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.5436e-04\n",
"Epoch 274/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.4913e-04\n",
"Epoch 275/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 2.4401e-04\n",
"Epoch 276/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.3900e-04\n",
"Epoch 277/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.3409e-04\n",
"Epoch 278/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.2929e-04\n",
"Epoch 279/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.2458e-04\n",
"Epoch 280/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.1997e-04\n",
"Epoch 281/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.1545e-04\n",
"Epoch 282/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.1102e-04\n",
"Epoch 283/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 2.0669e-04\n",
"Epoch 284/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.0244e-04\n",
"Epoch 285/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.9828e-04\n",
"Epoch 286/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.9421e-04\n",
"Epoch 287/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.9022e-04\n",
"Epoch 288/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.8632e-04\n",
"Epoch 289/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.8249e-04\n",
"Epoch 290/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.7874e-04\n",
"Epoch 291/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.7507e-04\n",
"Epoch 292/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.7147e-04\n",
"Epoch 293/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.6795e-04\n",
"Epoch 294/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.6450e-04\n",
"Epoch 295/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.6112e-04\n",
"Epoch 296/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5781e-04\n",
"Epoch 297/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5457e-04\n",
"Epoch 298/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5140e-04\n",
"Epoch 299/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.4829e-04\n",
"Epoch 300/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.4524e-04\n",
"Epoch 301/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.4226e-04\n",
"Epoch 302/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 1.3934e-04\n",
"Epoch 303/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.3647e-04\n",
"Epoch 304/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.3367e-04\n",
"Epoch 305/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.3093e-04\n",
"Epoch 306/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2824e-04\n",
"Epoch 307/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2560e-04\n",
"Epoch 308/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2302e-04\n",
"Epoch 309/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2049e-04\n",
"Epoch 310/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.1802e-04\n",
"Epoch 311/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.1560e-04\n",
"Epoch 312/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.1322e-04\n",
"Epoch 313/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.1090e-04\n",
"Epoch 314/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.0862e-04\n",
"Epoch 315/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.0639e-04\n",
"Epoch 316/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.0420e-04\n",
"Epoch 317/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.0206e-04\n",
"Epoch 318/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.9964e-05\n",
"Epoch 319/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.7912e-05\n",
"Epoch 320/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.5899e-05\n",
"Epoch 321/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.3931e-05\n",
"Epoch 322/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.2002e-05\n",
"Epoch 323/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.0112e-05\n",
"Epoch 324/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.8261e-05\n",
"Epoch 325/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.6447e-05\n",
"Epoch 326/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 8.4672e-05\n",
"Epoch 327/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 8.2933e-05\n",
"Epoch 328/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 8.1227e-05\n",
"Epoch 329/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.9558e-05\n",
"Epoch 330/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 7.7925e-05\n",
"Epoch 331/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.6324e-05\n",
"Epoch 332/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.4756e-05\n",
"Epoch 333/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.3220e-05\n",
"Epoch 334/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.1716e-05\n",
"Epoch 335/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 7.0243e-05\n",
"Epoch 336/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.8798e-05\n",
"Epoch 337/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.7386e-05\n",
"Epoch 338/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.6001e-05\n",
"Epoch 339/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.4646e-05\n",
"Epoch 340/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.3318e-05\n",
"Epoch 341/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 6.2017e-05\n",
"Epoch 342/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 6.0743e-05\n",
"Epoch 343/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.9495e-05\n",
"Epoch 344/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.8274e-05\n",
"Epoch 345/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.7076e-05\n",
"Epoch 346/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.5904e-05\n",
"Epoch 347/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.4755e-05\n",
"Epoch 348/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.3630e-05\n",
"Epoch 349/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.2528e-05\n",
"Epoch 350/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.1450e-05\n",
"Epoch 351/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.0393e-05\n",
"Epoch 352/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.9358e-05\n",
"Epoch 353/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 4.8345e-05\n",
"Epoch 354/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.7351e-05\n",
"Epoch 355/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.6378e-05\n",
"Epoch 356/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.5427e-05\n",
"Epoch 357/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 4.4493e-05\n",
"Epoch 358/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.3579e-05\n",
"Epoch 359/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.2685e-05\n",
"Epoch 360/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.1808e-05\n",
"Epoch 361/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.0948e-05\n",
"Epoch 362/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.0107e-05\n",
"Epoch 363/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.9284e-05\n",
"Epoch 364/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 3.8476e-05\n",
"Epoch 365/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.7686e-05\n",
"Epoch 366/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 3.6911e-05\n",
"Epoch 367/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.6153e-05\n",
"Epoch 368/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 3.5410e-05\n",
"Epoch 369/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.4683e-05\n",
"Epoch 370/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.3970e-05\n",
"Epoch 371/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.3272e-05\n",
"Epoch 372/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.2589e-05\n",
"Epoch 373/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.1918e-05\n",
"Epoch 374/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 3.1264e-05\n",
"Epoch 375/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.0622e-05\n",
"Epoch 376/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.9992e-05\n",
"Epoch 377/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.9377e-05\n",
"Epoch 378/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.8773e-05\n",
"Epoch 379/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.8183e-05\n",
"Epoch 380/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.7604e-05\n",
"Epoch 381/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.7038e-05\n",
"Epoch 382/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.6482e-05\n",
"Epoch 383/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.5939e-05\n",
"Epoch 384/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.5406e-05\n",
"Epoch 385/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.4885e-05\n",
"Epoch 386/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.4373e-05\n",
"Epoch 387/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.3873e-05\n",
"Epoch 388/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.3383e-05\n",
"Epoch 389/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.2902e-05\n",
"Epoch 390/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.2431e-05\n",
"Epoch 391/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.1971e-05\n",
"Epoch 392/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.1519e-05\n",
"Epoch 393/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.1077e-05\n",
"Epoch 394/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.0644e-05\n",
"Epoch 395/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 2.0220e-05\n",
"Epoch 396/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.9805e-05\n",
"Epoch 397/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.9398e-05\n",
"Epoch 398/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.9000e-05\n",
"Epoch 399/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.8609e-05\n",
"Epoch 400/500\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 0s 3ms/step - loss: 1.8227e-05\n",
"Epoch 401/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.7852e-05\n",
"Epoch 402/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.7486e-05\n",
"Epoch 403/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.7127e-05\n",
"Epoch 404/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.6774e-05\n",
"Epoch 405/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.6429e-05\n",
"Epoch 406/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.6092e-05\n",
"Epoch 407/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5762e-05\n",
"Epoch 408/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5438e-05\n",
"Epoch 409/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.5121e-05\n",
"Epoch 410/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.4810e-05\n",
"Epoch 411/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.4507e-05\n",
"Epoch 412/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.4208e-05\n",
"Epoch 413/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.3916e-05\n",
"Epoch 414/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.3630e-05\n",
"Epoch 415/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.3350e-05\n",
"Epoch 416/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.3076e-05\n",
"Epoch 417/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.2808e-05\n",
"Epoch 418/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.2544e-05\n",
"Epoch 419/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2287e-05\n",
"Epoch 420/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.2035e-05\n",
"Epoch 421/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.1787e-05\n",
"Epoch 422/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.1545e-05\n",
"Epoch 423/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 1.1308e-05\n",
"Epoch 424/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.1075e-05\n",
"Epoch 425/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.0848e-05\n",
"Epoch 426/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.0625e-05\n",
"Epoch 427/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 1.0406e-05\n",
"Epoch 428/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 1.0193e-05\n",
"Epoch 429/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.9837e-06\n",
"Epoch 430/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.7781e-06\n",
"Epoch 431/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.5770e-06\n",
"Epoch 432/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 9.3809e-06\n",
"Epoch 433/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 9.1883e-06\n",
"Epoch 434/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.9993e-06\n",
"Epoch 435/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 8.8145e-06\n",
"Epoch 436/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 8.6335e-06\n",
"Epoch 437/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 8.4560e-06\n",
"Epoch 438/500\n",
"1/1 [==============================] - 0s 7ms/step - loss: 8.2825e-06\n",
"Epoch 439/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 8.1123e-06\n",
"Epoch 440/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.9451e-06\n",
"Epoch 441/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.7825e-06\n",
"Epoch 442/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.6225e-06\n",
"Epoch 443/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 7.4659e-06\n",
"Epoch 444/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.3124e-06\n",
"Epoch 445/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.1626e-06\n",
"Epoch 446/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 7.0151e-06\n",
"Epoch 447/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.8711e-06\n",
"Epoch 448/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.7299e-06\n",
"Epoch 449/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.5915e-06\n",
"Epoch 450/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.4558e-06\n",
"Epoch 451/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.3234e-06\n",
"Epoch 452/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 6.1935e-06\n",
"Epoch 453/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 6.0659e-06\n",
"Epoch 454/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.9408e-06\n",
"Epoch 455/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 5.8188e-06\n",
"Epoch 456/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.6991e-06\n",
"Epoch 457/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 5.5819e-06\n",
"Epoch 458/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.4674e-06\n",
"Epoch 459/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 5.3553e-06\n",
"Epoch 460/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.2451e-06\n",
"Epoch 461/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.1378e-06\n",
"Epoch 462/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 5.0321e-06\n",
"Epoch 463/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.9288e-06\n",
"Epoch 464/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.8276e-06\n",
"Epoch 465/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.7284e-06\n",
"Epoch 466/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.6316e-06\n",
"Epoch 467/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.5363e-06\n",
"Epoch 468/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.4433e-06\n",
"Epoch 469/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.3519e-06\n",
"Epoch 470/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.2627e-06\n",
"Epoch 471/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 4.1749e-06\n",
"Epoch 472/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.0894e-06\n",
"Epoch 473/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 4.0053e-06\n",
"Epoch 474/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.9229e-06\n",
"Epoch 475/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.8423e-06\n",
"Epoch 476/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 3.7634e-06\n",
"Epoch 477/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.6859e-06\n",
"Epoch 478/500\n",
"1/1 [==============================] - 0s 4ms/step - loss: 3.6104e-06\n",
"Epoch 479/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.5361e-06\n",
"Epoch 480/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.4633e-06\n",
"Epoch 481/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.3923e-06\n",
"Epoch 482/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 3.3226e-06\n",
"Epoch 483/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.2542e-06\n",
"Epoch 484/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.1876e-06\n",
"Epoch 485/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.1221e-06\n",
"Epoch 486/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 3.0578e-06\n",
"Epoch 487/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.9948e-06\n",
"Epoch 488/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.9333e-06\n",
"Epoch 489/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.8732e-06\n",
"Epoch 490/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.8143e-06\n",
"Epoch 491/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.7565e-06\n",
"Epoch 492/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.7001e-06\n",
"Epoch 493/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.6447e-06\n",
"Epoch 494/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.5903e-06\n",
"Epoch 495/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.5370e-06\n",
"Epoch 496/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.4847e-06\n",
"Epoch 497/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.4337e-06\n",
"Epoch 498/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.3837e-06\n",
"Epoch 499/500\n",
"1/1 [==============================] - 0s 3ms/step - loss: 2.3348e-06\n",
"Epoch 500/500\n",
"1/1 [==============================] - 0s 2ms/step - loss: 2.2869e-06\n"
]
},
{
"data": {
"text/plain": [
"<keras.callbacks.History at 0x1219fe0a0>"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model.fit(xs, ys, epochs=500)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "f73b72b6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 0s 67ms/step\n",
"[[30.995588]]\n"
]
}
],
"source": [
"print(model.predict([10.0]))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment