|
21 | 21 | "execution_count": 1, |
22 | 22 | "metadata": { |
23 | 23 | "ExecuteTime": { |
24 | | - "end_time": "2024-11-06T21:51:28.948615200Z", |
25 | | - "start_time": "2024-11-06T21:51:19.721136Z" |
| 24 | + "end_time": "2024-11-09T15:29:05.393532Z", |
| 25 | + "start_time": "2024-11-09T15:28:57.267583700Z" |
26 | 26 | } |
27 | 27 | }, |
28 | 28 | "outputs": [], |
|
51 | 51 | "execution_count": 2, |
52 | 52 | "metadata": { |
53 | 53 | "ExecuteTime": { |
54 | | - "end_time": "2024-11-06T21:51:30.589179800Z", |
55 | | - "start_time": "2024-11-06T21:51:28.950619500Z" |
| 54 | + "end_time": "2024-11-09T15:29:06.872553900Z", |
| 55 | + "start_time": "2024-11-09T15:29:05.396041700Z" |
56 | 56 | } |
57 | 57 | }, |
58 | 58 | "outputs": [], |
|
72 | 72 | "execution_count": 3, |
73 | 73 | "metadata": { |
74 | 74 | "ExecuteTime": { |
75 | | - "end_time": "2024-11-06T21:51:30.871205900Z", |
76 | | - "start_time": "2024-11-06T21:51:30.590182500Z" |
| 75 | + "end_time": "2024-11-09T15:29:07.138228500Z", |
| 76 | + "start_time": "2024-11-09T15:29:06.873553300Z" |
77 | 77 | } |
78 | 78 | }, |
79 | 79 | "outputs": [ |
|
150 | 150 | "execution_count": 4, |
151 | 151 | "metadata": { |
152 | 152 | "ExecuteTime": { |
153 | | - "end_time": "2024-11-06T21:51:30.899961500Z", |
154 | | - "start_time": "2024-11-06T21:51:30.871205900Z" |
| 153 | + "end_time": "2024-11-09T15:29:07.182100500Z", |
| 154 | + "start_time": "2024-11-09T15:29:07.139267400Z" |
155 | 155 | } |
156 | 156 | }, |
157 | 157 | "outputs": [], |
|
176 | 176 | "execution_count": 5, |
177 | 177 | "metadata": { |
178 | 178 | "ExecuteTime": { |
179 | | - "end_time": "2024-11-06T21:51:30.904961800Z", |
180 | | - "start_time": "2024-11-06T21:51:30.886456800Z" |
| 179 | + "end_time": "2024-11-09T15:29:07.185659500Z", |
| 180 | + "start_time": "2024-11-09T15:29:07.154336500Z" |
181 | 181 | } |
182 | 182 | }, |
183 | 183 | "outputs": [ |
|
189 | 189 | "-------------------------------------------------\n", |
190 | 190 | "Layer 1: Input(input_shape=(200,))\n", |
191 | 191 | "Layer 2: Embedding(input_dim=10000, output_dim=100)\n", |
192 | | - "Layer 3: Bidirectional(layer=LSTM(units=32, return_sequences=True, return_state=False, random_state=None))\n", |
193 | | - "Layer 4: Attention(use_scale=True, score_mode=dot)\n", |
| 192 | + "Layer 3: Bidirectional(layer=LSTM(units=32, return_sequences=True, return_state=False))\n", |
| 193 | + "Layer 4: Attention(use_scale=True, score_mode=dot, return_sequences=False)\n", |
194 | 194 | "Layer 5: Dense(units=1)\n", |
195 | 195 | "Layer 6: Activation(Sigmoid)\n", |
196 | 196 | "-------------------------------------------------\n", |
|
215 | 215 | }, |
216 | 216 | { |
217 | 217 | "cell_type": "code", |
218 | | - "execution_count": 7, |
| 218 | + "execution_count": 6, |
219 | 219 | "metadata": { |
220 | 220 | "ExecuteTime": { |
221 | | - "end_time": "2024-11-06T22:17:05.632380200Z", |
222 | | - "start_time": "2024-11-06T22:17:05.625379900Z" |
| 221 | + "end_time": "2024-11-09T15:57:58.751713500Z", |
| 222 | + "start_time": "2024-11-09T15:29:07.168952900Z" |
223 | 223 | } |
224 | 224 | }, |
225 | 225 | "outputs": [ |
226 | 226 | { |
227 | 227 | "name": "stdout", |
228 | 228 | "output_type": "stream", |
229 | 229 | "text": [ |
230 | | - "\n", |
231 | | - "[==============================] 100% Epoch 1/10 - loss: 0.6193 - accuracy: 0.7079 - 248.72s - val_accuracy: 0.8013\n", |
232 | | - "[==============================] 100% Epoch 2/10 - loss: 0.4215 - accuracy: 0.8477 - 264.70s - val_accuracy: 0.8504\n", |
233 | | - "[==============================] 100% Epoch 3/10 - loss: 0.3301 - accuracy: 0.8799 - 266.74s - val_accuracy: 0.8624\n", |
234 | | - "[==============================] 100% Epoch 4/10 - loss: 0.2835 - accuracy: 0.8954 - 255.44s - val_accuracy: 0.8677\n", |
235 | | - "[==============================] 100% Epoch 5/10 - loss: 0.2519 - accuracy: 0.9093 - 239.53s - val_accuracy: 0.8710\n", |
236 | | - "[==============================] 100% Epoch 6/10 - loss: 0.2283 - accuracy: 0.9183 - 239.53s - val_accuracy: 0.8728\n", |
237 | | - "[==============================] 100% Epoch 7/10 - loss: 0.2090 - accuracy: 0.9260 - 239.53s - val_accuracy: 0.8802\n", |
238 | | - "[==============================] 100% Epoch 8/10 - loss: 0.1926 - accuracy: 0.9320 - 239.53s - val_accuracy: 0.8884\n", |
239 | | - "[==============================] 100% Epoch 9/10 - loss: 0.1784 - accuracy: 0.9376 - 239.53s - val_accuracy: 0.8902\n", |
240 | | - "[==============================] 100% Epoch 10/10 - loss: 0.1660 - accuracy: 0.9423 - 239.53s - val_accuracy: 0.9000\n" |
| 230 | + "[==============================] 100% Epoch 1/10 - loss: 0.4424 - accuracy: 0.7944 - 118.13s - val_accuracy: 0.8490\n", |
| 231 | + "[==============================] 100% Epoch 2/10 - loss: 0.2401 - accuracy: 0.9084 - 120.27s - val_accuracy: 0.8170\n", |
| 232 | + "[==============================] 100% Epoch 3/10 - loss: 0.1814 - accuracy: 0.9332 - 121.17s - val_accuracy: 0.8602\n", |
| 233 | + "[==============================] 100% Epoch 4/10 - loss: 0.1479 - accuracy: 0.9485 - 118.24s - val_accuracy: 0.8509\n", |
| 234 | + "[==============================] 100% Epoch 5/10 - loss: 0.1056 - accuracy: 0.9649 - 120.75s - val_accuracy: 0.8637\n", |
| 235 | + "[==============================] 100% Epoch 6/10 - loss: 0.0854 - accuracy: 0.9735 - 118.61s - val_accuracy: 0.8549\n", |
| 236 | + "[==============================] 100% Epoch 7/10 - loss: 0.0871 - accuracy: 0.9728 - 120.97s - val_accuracy: 0.8567\n", |
| 237 | + "[==============================] 100% Epoch 8/10 - loss: 0.0629 - accuracy: 0.9799 - 117.70s - val_accuracy: 0.8515\n", |
| 238 | + "[==============================] 100% Epoch 9/10 - loss: 0.0533 - accuracy: 0.9840 - 120.13s - val_accuracy: 0.8463\n", |
| 239 | + "[==============================] 100% Epoch 10/10 - loss: 0.0394 - accuracy: 0.9890 - 118.95s - val_accuracy: 0.8444\n" |
241 | 240 | ] |
| 241 | + }, |
| 242 | + { |
| 243 | + "data": { |
| 244 | + "text/plain": "" |
| 245 | + }, |
| 246 | + "execution_count": 6, |
| 247 | + "metadata": {}, |
| 248 | + "output_type": "execute_result" |
242 | 249 | } |
243 | 250 | ], |
244 | 251 | "source": [ |
|
254 | 261 | }, |
255 | 262 | { |
256 | 263 | "cell_type": "code", |
257 | | - "execution_count": null, |
| 264 | + "execution_count": 7, |
258 | 265 | "metadata": { |
259 | 266 | "ExecuteTime": { |
260 | | - "end_time": "2024-11-06T22:17:25.754433600Z", |
261 | | - "start_time": "2024-11-06T22:17:14.398517800Z" |
| 267 | + "end_time": "2024-11-09T15:58:20.883275400Z", |
| 268 | + "start_time": "2024-11-09T15:57:58.748498900Z" |
262 | 269 | } |
263 | 270 | }, |
264 | 271 | "outputs": [ |
265 | 272 | { |
266 | 273 | "name": "stdout", |
267 | 274 | "output_type": "stream", |
268 | 275 | "text": [ |
269 | | - "Loss: 1.4010948021794365\n", |
270 | | - "Accuracy: 0.881\n" |
| 276 | + "Loss: 3.0061621606978313\n", |
| 277 | + "Accuracy: 0.8592\n" |
271 | 278 | ] |
272 | 279 | } |
273 | 280 | ], |
|
0 commit comments