scallop-lang / scallop

Framework and Language for Neurosymbolic Programming.
https://www.scallop-lang.org
MIT License
208 stars 8 forks source link

pacman_maze The training process is unstable #29

Open zdx3578 opened 3 weeks ago

zdx3578 commented 3 weeks ago

(scalloppy38) ➜ pacman_maze git:(master) ✗ taskset -c 0-3 python run.py libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile [Train Epoch 1] Avg Loss: 0.010255396366119385, Success: 31/100 (31.00%): 100%|██████████████| 100/100 [03:52<00:00, 2.32s/it] [Test Epoch 1] Success 92/100 (92.00%): 100%|████████████████████████████████████████████████| 100/100 [00:08<00:00, 11.14it/s] [Train Epoch 2] Avg Loss: 0.011778801679611206, Success: 41/100 (41.00%): 100%|██████████████| 100/100 [04:28<00:00, 2.68s/it] [Test Epoch 2] Success 94/100 (94.00%): 100%|████████████████████████████████████████████████| 100/100 [00:09<00:00, 10.49it/s] [Train Epoch 3] Avg Loss: 0.011897480115294456, Success: 44/100 (44.00%): 100%|██████████████| 100/100 [03:36<00:00, 2.16s/it] [Test Epoch 3] Success 93/100 (93.00%): 100%|████████████████████████████████████████████████| 100/100 [00:09<00:00, 10.43it/s] [Train Epoch 4] Avg Loss: 0.01294491346925497, Success: 43/100 (43.00%): 100%|███████████████| 100/100 [03:48<00:00, 2.28s/it] [Test Epoch 4] Success 93/100 (93.00%): 100%|████████████████████████████████████████████████| 100/100 [00:08<00:00, 11.75it/s] [Train Epoch 5] Avg Loss: 0.014121755957603455, Success: 45/100 (45.00%): 100%|██████████████| 100/100 [03:01<00:00, 1.82s/it] [Test Epoch 5] Success 90/100 (90.00%): 100%|████████████████████████████████████████████████| 100/100 [00:11<00:00, 8.97it/s] [Train Epoch 6] Avg Loss: 0.015209011733531952, Success: 47/100 (47.00%): 100%|██████████████| 100/100 [03:35<00:00, 2.15s/it] [Test Epoch 6] Success 93/100 (93.00%): 100%|████████████████████████████████████████████████| 100/100 [00:09<00:00, 10.70it/s] [Train Epoch 7] Avg Loss: 0.01574140228331089, Success: 47/100 (47.00%): 100%|███████████████| 100/100 [03:21<00:00, 2.01s/it] [Test Epoch 7] Success 94/100 (94.00%): 100%|████████████████████████████████████████████████| 100/100 [00:09<00:00, 10.96it/s] [Train Epoch 8] Avg Loss: 0.016687622293829918, Success: 56/100 (56.00%): 100%|██████████████| 100/100 [03:22<00:00, 2.03s/it] [Test Epoch 8] Success 94/100 (94.00%): 100%|████████████████████████████████████████████████| 100/100 [00:08<00:00, 11.73it/s] [Train Epoch 9] Avg Loss: 0.017719492316246033, Success: 51/100 (51.00%): 100%|██████████████| 100/100 [03:19<00:00, 2.00s/it] [Test Epoch 9] Success 93/100 (93.00%): 100%|████████████████████████████████████████████████| 100/100 [00:08<00:00, 11.87it/s] [Train Epoch 10] Avg Loss: 0.018721148371696472, Success: 64/100 (64.00%): 100%|█████████████| 100/100 [03:14<00:00, 1.94s/it] [Test Epoch 10] Success 90/100 (90.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.84it/s] [Train Epoch 11] Avg Loss: 0.019627239555120468, Success: 53/100 (53.00%): 100%|█████████████| 100/100 [02:43<00:00, 1.64s/it] [Test Epoch 11] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.07it/s] [Train Epoch 12] Avg Loss: 0.01979944109916687, Success: 58/100 (58.00%): 100%|██████████████| 100/100 [03:17<00:00, 1.98s/it] [Test Epoch 12] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:08<00:00, 11.52it/s] [Train Epoch 13] Avg Loss: 0.01923908293247223, Success: 56/100 (56.00%): 100%|██████████████| 100/100 [03:16<00:00, 1.96s/it] [Test Epoch 13] Success 97/100 (97.00%): 100%|███████████████████████████████████████████████| 100/100 [00:07<00:00, 13.83it/s] [Train Epoch 14] Avg Loss: 0.019771737977862358, Success: 59/100 (59.00%): 100%|█████████████| 100/100 [02:51<00:00, 1.71s/it] [Test Epoch 14] Success 94/100 (94.00%): 100%|███████████████████████████████████████████████| 100/100 [00:08<00:00, 11.23it/s] [Train Epoch 15] Avg Loss: 0.02108113095164299, Success: 64/100 (64.00%): 100%|██████████████| 100/100 [02:38<00:00, 1.58s/it] [Test Epoch 15] Success 88/100 (88.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.59it/s] [Train Epoch 16] Avg Loss: 0.022586800158023834, Success: 60/100 (60.00%): 100%|█████████████| 100/100 [02:44<00:00, 1.65s/it] [Test Epoch 16] Success 93/100 (93.00%): 100%|███████████████████████████████████████████████| 100/100 [00:08<00:00, 11.25it/s] [Train Epoch 17] Avg Loss: 0.02330157533288002, Success: 71/100 (71.00%): 100%|██████████████| 100/100 [03:00<00:00, 1.81s/it] [Test Epoch 17] Success 90/100 (90.00%): 100%|███████████████████████████████████████████████| 100/100 [00:10<00:00, 9.76it/s] [Train Epoch 18] Avg Loss: 0.024617815390229225, Success: 67/100 (67.00%): 100%|█████████████| 100/100 [02:50<00:00, 1.70s/it] [Test Epoch 18] Success 91/100 (91.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.07it/s] [Train Epoch 19] Avg Loss: 0.02507336251437664, Success: 72/100 (72.00%): 100%|██████████████| 100/100 [02:51<00:00, 1.72s/it] [Test Epoch 19] Success 95/100 (95.00%): 100%|███████████████████████████████████████████████| 100/100 [00:08<00:00, 11.57it/s] [Train Epoch 20] Avg Loss: 0.02567371353507042, Success: 66/100 (66.00%): 100%|██████████████| 100/100 [03:02<00:00, 1.83s/it] [Test Epoch 20] Success 90/100 (90.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.99it/s] [Train Epoch 21] Avg Loss: 0.025338266044855118, Success: 70/100 (70.00%): 100%|█████████████| 100/100 [02:53<00:00, 1.74s/it] [Test Epoch 21] Success 95/100 (95.00%): 100%|███████████████████████████████████████████████| 100/100 [00:08<00:00, 11.26it/s] [Train Epoch 22] Avg Loss: 0.026946449652314186, Success: 73/100 (73.00%): 100%|█████████████| 100/100 [02:13<00:00, 1.33s/it] [Test Epoch 22] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:10<00:00, 9.82it/s] [Train Epoch 23] Avg Loss: 0.027054766193032265, Success: 69/100 (69.00%): 100%|█████████████| 100/100 [02:51<00:00, 1.72s/it] [Test Epoch 23] Success 97/100 (97.00%): 100%|███████████████████████████████████████████████| 100/100 [00:07<00:00, 13.29it/s] [Train Epoch 24] Avg Loss: 0.027040865272283554, Success: 73/100 (73.00%): 100%|█████████████| 100/100 [02:34<00:00, 1.54s/it] [Test Epoch 24] Success 93/100 (93.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.66it/s] [Train Epoch 25] Avg Loss: 0.028667893260717392, Success: 64/100 (64.00%): 100%|█████████████| 100/100 [02:42<00:00, 1.63s/it] [Test Epoch 25] Success 90/100 (90.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.73it/s] [Train Epoch 26] Avg Loss: 0.028259415179491043, Success: 74/100 (74.00%): 100%|█████████████| 100/100 [02:21<00:00, 1.42s/it] [Test Epoch 26] Success 93/100 (93.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.15it/s] [Train Epoch 27] Avg Loss: 0.02998471073806286, Success: 71/100 (71.00%): 100%|██████████████| 100/100 [02:37<00:00, 1.57s/it] [Test Epoch 27] Success 88/100 (88.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.69it/s] [Train Epoch 28] Avg Loss: 0.02994495816528797, Success: 78/100 (78.00%): 100%|██████████████| 100/100 [02:43<00:00, 1.64s/it] [Test Epoch 28] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.18it/s] [Train Epoch 29] Avg Loss: 0.030589791014790535, Success: 74/100 (74.00%): 100%|█████████████| 100/100 [02:35<00:00, 1.55s/it] [Test Epoch 29] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 10.22it/s] [Train Epoch 30] Avg Loss: 0.030200697481632233, Success: 79/100 (79.00%): 100%|█████████████| 100/100 [03:13<00:00, 1.94s/it] [Test Epoch 30] Success 91/100 (91.00%): 100%|███████████████████████████████████████████████| 100/100 [00:10<00:00, 9.39it/s] [Train Epoch 31] Avg Loss: 0.028791407123208046, Success: 69/100 (69.00%): 100%|█████████████| 100/100 [02:53<00:00, 1.73s/it] [Test Epoch 31] Success 89/100 (89.00%): 100%|███████████████████████████████████████████████| 100/100 [00:10<00:00, 9.79it/s] [Train Epoch 32] Avg Loss: 0.02818046323955059, Success: 72/100 (72.00%): 100%|██████████████| 100/100 [03:03<00:00, 1.84s/it] [Test Epoch 32] Success 89/100 (89.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.94it/s] [Train Epoch 33] Avg Loss: 0.027311520650982857, Success: 71/100 (71.00%): 100%|█████████████| 100/100 [03:02<00:00, 1.82s/it] [Test Epoch 33] Success 91/100 (91.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.56it/s] [Train Epoch 34] Avg Loss: 0.028449852019548416, Success: 76/100 (76.00%): 100%|█████████████| 100/100 [02:55<00:00, 1.75s/it] [Test Epoch 34] Success 87/100 (87.00%): 100%|███████████████████████████████████████████████| 100/100 [00:12<00:00, 8.10it/s] [Train Epoch 35] Avg Loss: 0.0282937940210104, Success: 77/100 (77.00%): 100%|███████████████| 100/100 [02:51<00:00, 1.71s/it] [Test Epoch 35] Success 89/100 (89.00%): 100%|███████████████████████████████████████████████| 100/100 [00:12<00:00, 7.95it/s] [Train Epoch 36] Avg Loss: 0.029329311102628708, Success: 82/100 (82.00%): 100%|█████████████| 100/100 [02:52<00:00, 1.73s/it] [Test Epoch 36] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 9.01it/s] [Train Epoch 37] Avg Loss: 0.030524766072630882, Success: 75/100 (75.00%): 100%|█████████████| 100/100 [03:15<00:00, 1.95s/it] [Test Epoch 37] Success 78/100 (78.00%): 100%|███████████████████████████████████████████████| 100/100 [00:15<00:00, 6.49it/s] [Train Epoch 38] Avg Loss: 0.028681829571723938, Success: 75/100 (75.00%): 100%|█████████████| 100/100 [03:18<00:00, 1.99s/it] [Test Epoch 38] Success 73/100 (73.00%): 100%|███████████████████████████████████████████████| 100/100 [00:17<00:00, 5.86it/s] [Train Epoch 39] Avg Loss: 0.02846618741750717, Success: 72/100 (72.00%): 100%|██████████████| 100/100 [03:01<00:00, 1.81s/it] [Test Epoch 39] Success 74/100 (74.00%): 100%|███████████████████████████████████████████████| 100/100 [00:14<00:00, 6.81it/s] [Train Epoch 40] Avg Loss: 0.030008582398295403, Success: 74/100 (74.00%): 100%|█████████████| 100/100 [02:47<00:00, 1.68s/it] [Test Epoch 40] Success 83/100 (83.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.62it/s] [Train Epoch 41] Avg Loss: 0.029500003904104233, Success: 70/100 (70.00%): 100%|█████████████| 100/100 [02:20<00:00, 1.41s/it] [Test Epoch 41] Success 83/100 (83.00%): 100%|███████████████████████████████████████████████| 100/100 [00:12<00:00, 8.25it/s] [Train Epoch 42] Avg Loss: 0.029390228912234306, Success: 81/100 (81.00%): 100%|█████████████| 100/100 [03:04<00:00, 1.84s/it] [Test Epoch 42] Success 87/100 (87.00%): 100%|███████████████████████████████████████████████| 100/100 [00:12<00:00, 8.15it/s] [Train Epoch 43] Avg Loss: 0.030851395800709724, Success: 76/100 (76.00%): 100%|█████████████| 100/100 [02:51<00:00, 1.72s/it] [Test Epoch 43] Success 92/100 (92.00%): 100%|███████████████████████████████████████████████| 100/100 [00:10<00:00, 9.44it/s] [Train Epoch 44] Avg Loss: 0.030719490721821785, Success: 77/100 (77.00%): 100%|█████████████| 100/100 [02:30<00:00, 1.50s/it] [Test Epoch 44] Success 83/100 (83.00%): 100%|███████████████████████████████████████████████| 100/100 [00:12<00:00, 8.01it/s] [Train Epoch 45] Avg Loss: 0.03187533840537071, Success: 75/100 (75.00%): 100%|██████████████| 100/100 [03:05<00:00, 1.85s/it] [Test Epoch 45] Success 91/100 (91.00%): 100%|███████████████████████████████████████████████| 100/100 [00:09<00:00, 11.09it/s] [Train Epoch 46] Avg Loss: 0.031028639525175095, Success: 79/100 (79.00%): 100%|█████████████| 100/100 [02:37<00:00, 1.58s/it] [Test Epoch 46] Success 80/100 (80.00%): 100%|███████████████████████████████████████████████| 100/100 [00:13<00:00, 7.69it/s] [Train Epoch 47] Avg Loss: 0.030755305662751198, Success: 77/100 (77.00%): 100%|█████████████| 100/100 [03:11<00:00, 1.91s/it] [Test Epoch 47] Success 88/100 (88.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.77it/s] [Train Epoch 48] Avg Loss: 0.029698213562369347, Success: 72/100 (72.00%): 100%|█████████████| 100/100 [03:02<00:00, 1.83s/it] [Test Epoch 48] Success 66/100 (66.00%): 100%|███████████████████████████████████████████████| 100/100 [00:16<00:00, 6.13it/s] [Train Epoch 49] Avg Loss: 0.02885304018855095, Success: 73/100 (73.00%): 100%|██████████████| 100/100 [02:51<00:00, 1.71s/it] [Test Epoch 49] Success 86/100 (86.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.76it/s] [Train Epoch 50] Avg Loss: 0.029821647331118584, Success: 72/100 (72.00%): 100%|█████████████| 100/100 [02:32<00:00, 1.52s/it] [Test Epoch 50] Success 86/100 (86.00%): 100%|███████████████████████████████████████████████| 100/100 [00:10<00:00, 9.30it/s] [Train Epoch 51] Avg Loss: 0.029851293191313744, Success: 79/100 (79.00%): 100%|█████████████| 100/100 [02:56<00:00, 1.77s/it] [Test Epoch 51] Success 77/100 (77.00%): 100%|███████████████████████████████████████████████| 100/100 [00:14<00:00, 6.96it/s] [Train Epoch 52] Avg Loss: 0.03130021691322327, Success: 78/100 (78.00%): 100%|██████████████| 100/100 [02:43<00:00, 1.64s/it] [Test Epoch 52] Success 77/100 (77.00%): 100%|███████████████████████████████████████████████| 100/100 [00:12<00:00, 7.73it/s] [Train Epoch 53] Avg Loss: 0.028978468850255013, Success: 74/100 (74.00%): 100%|█████████████| 100/100 [02:49<00:00, 1.70s/it] [Test Epoch 53] Success 77/100 (77.00%): 100%|███████████████████████████████████████████████| 100/100 [00:13<00:00, 7.52it/s] [Train Epoch 54] Avg Loss: 0.03096962720155716, Success: 74/100 (74.00%): 100%|██████████████| 100/100 [03:09<00:00, 1.89s/it] [Test Epoch 54] Success 67/100 (67.00%): 100%|███████████████████████████████████████████████| 100/100 [00:13<00:00, 7.17it/s] [Train Epoch 55] Avg Loss: 0.031607381999492645, Success: 60/100 (60.00%): 100%|█████████████| 100/100 [02:39<00:00, 1.60s/it] [Test Epoch 55] Success 68/100 (68.00%): 100%|███████████████████████████████████████████████| 100/100 [00:11<00:00, 8.52it/s] [Train Epoch 56] Avg Loss: 0.03013984113931656, Success: 68/100 (68.00%): 100%|██████████████| 100/100 [03:05<00:00, 1.85s/it] [Test Epoch 56] Success 68/100 (68.00%): 100%|███████████████████████████████████████████████| 100/100 [00:15<00:00, 6.63it/s]

zdx3578 commented 3 weeks ago

vae latent space for classifacation