diff --git a/DEMO.ipynb b/DEMO.ipynb
index 9dc2d212..e9d92e46 100644
--- a/DEMO.ipynb
+++ b/DEMO.ipynb
@@ -55,7 +55,7 @@
},
{
"cell_type": "code",
- "execution_count": 40,
+ "execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
@@ -64,14 +64,14 @@
},
{
"cell_type": "code",
- "execution_count": 41,
+ "execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "100%|██████████| 4/4 [00:01<00:00, 3.99it/s]\n"
+ "100%|██████████| 4/4 [00:01<00:00, 3.93it/s]\n"
]
}
],
@@ -93,18 +93,20 @@
},
{
"cell_type": "code",
- "execution_count": 39,
+ "execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "100%|██████████| 1000000/1000000 [00:00<00:00, 1563919.55it/s]\n"
+ "100%|██████████| 1000000/1000000 [00:00<00:00, 1849858.32it/s]\n"
]
}
],
"source": [
+ "from tqdm import trange\n",
+ "\n",
"for i in trange(1_000_000):\n",
" pass"
]
@@ -118,14 +120,14 @@
},
{
"cell_type": "code",
- "execution_count": 42,
+ "execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "Processing d: 100%|██████████| 4/4 [00:01<00:00, 3.58it/s]\n"
+ "Processing d: 100%|██████████| 4/4 [00:01<00:00, 3.90it/s]\n"
]
}
],
@@ -147,14 +149,14 @@
},
{
"cell_type": "code",
- "execution_count": 43,
+ "execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "100%|██████████| 100/100 [00:02<00:00, 39.83it/s]\n"
+ "100%|██████████| 100/100 [00:02<00:00, 39.11it/s]\n"
]
}
],
@@ -176,14 +178,14 @@
},
{
"cell_type": "code",
- "execution_count": 44,
+ "execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "100%|██████████| 100/100 [00:02<00:00, 39.83it/s]\n"
+ "100%|██████████| 100/100 [00:02<00:00, 39.24it/s]\n"
]
}
],
@@ -204,15 +206,15 @@
},
{
"cell_type": "code",
- "execution_count": 56,
+ "execution_count": 20,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "1.00Mit [00:01, 824kit/s]\n",
- "999999\n"
+ "1.00Mit [00:00, 1.17Mit/s]\n",
+ " 999999\n"
]
}
],
@@ -238,14 +240,14 @@
},
{
"cell_type": "code",
- "execution_count": 45,
+ "execution_count": 21,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "GEN 99: 100%|██████████| 100/100 [00:10<00:00, 9.64it/s, gen=145, loss=0.679, lst=[1, 2], str=h]\n",
+ "GEN 99: 100%|██████████| 100/100 [00:11<00:00, 8.98it/s, gen=406, loss=0.256, lst=[1, 2], str=h]\n",
"Batch 4.5\n"
]
}
@@ -284,61 +286,35 @@
},
{
"cell_type": "code",
- "execution_count": 48,
+ "execution_count": 22,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "\n",
- "1st loop: 0%| | 0/3 [00:00, ?it/s]\u001b[A\n",
- "\n",
- "2nd loop: 0%| | 0/50 [00:00, ?it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 20%|██ | 10/50 [00:00<00:00, 99.31it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 40%|████ | 20/50 [00:00<00:00, 98.71it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 60%|██████ | 30/50 [00:00<00:00, 98.41it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 80%|████████ | 40/50 [00:00<00:00, 98.18it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 100%|██████████| 50/50 [00:00<00:00, 98.04it/s]\u001b[A\u001b[A\n",
- "\n",
- " \u001b[A\u001b[A\n",
- "1st loop: 33%|███▎ | 1/3 [00:00<00:01, 1.94it/s]\u001b[A\n",
- "\n",
- "2nd loop: 0%| | 0/50 [00:00, ?it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 20%|██ | 10/50 [00:00<00:00, 99.29it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 40%|████ | 20/50 [00:00<00:00, 98.79it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 60%|██████ | 30/50 [00:00<00:00, 98.46it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 80%|████████ | 40/50 [00:00<00:00, 98.25it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 100%|██████████| 50/50 [00:00<00:00, 98.07it/s]\u001b[A\u001b[A\n",
- "\n",
- " \u001b[A\u001b[A\n",
- "1st loop: 67%|██████▋ | 2/3 [00:01<00:00, 1.94it/s]\u001b[A\n",
- "\n",
- "2nd loop: 0%| | 0/50 [00:00, ?it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 20%|██ | 10/50 [00:00<00:00, 99.27it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 40%|████ | 20/50 [00:00<00:00, 98.76it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 60%|██████ | 30/50 [00:00<00:00, 98.42it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 80%|████████ | 40/50 [00:00<00:00, 98.21it/s]\u001b[A\u001b[A\n",
- "\n",
- "2nd loop: 100%|██████████| 50/50 [00:00<00:00, 98.04it/s]\u001b[A\u001b[A\n",
- "\n",
- " \u001b[A\u001b[A\n",
- "1st loop: 100%|██████████| 3/3 [00:01<00:00, 1.94it/s]\u001b[A\n",
- "\u001b[A"
+ "1st loop: 0%| | 0/3 [00:00, ?it/s]\n",
+ "2nd loop: 0%| | 0/50 [00:00, ?it/s]\u001b[A\n",
+ "2nd loop: 18%|█▊ | 9/50 [00:00<00:00, 89.19it/s]\u001b[A\n",
+ "2nd loop: 36%|███▌ | 18/50 [00:00<00:00, 86.87it/s]\u001b[A\n",
+ "2nd loop: 54%|█████▍ | 27/50 [00:00<00:00, 85.07it/s]\u001b[A\n",
+ "2nd loop: 72%|███████▏ | 36/50 [00:00<00:00, 85.11it/s]\u001b[A\n",
+ "2nd loop: 90%|█████████ | 45/50 [00:00<00:00, 84.92it/s]\u001b[A\n",
+ "1st loop: 33%|███▎ | 1/3 [00:00<00:01, 1.65it/s]\n",
+ "2nd loop: 0%| | 0/50 [00:00, ?it/s]\u001b[A\n",
+ "2nd loop: 18%|█▊ | 9/50 [00:00<00:00, 84.66it/s]\u001b[A\n",
+ "2nd loop: 36%|███▌ | 18/50 [00:00<00:00, 85.22it/s]\u001b[A\n",
+ "2nd loop: 54%|█████▍ | 27/50 [00:00<00:00, 85.05it/s]\u001b[A\n",
+ "2nd loop: 72%|███████▏ | 36/50 [00:00<00:00, 85.11it/s]\u001b[A\n",
+ "2nd loop: 88%|████████▊ | 44/50 [00:00<00:00, 83.41it/s]\u001b[A\n",
+ "1st loop: 67%|██████▋ | 2/3 [00:01<00:00, 1.66it/s]\n",
+ "2nd loop: 0%| | 0/50 [00:00, ?it/s]\u001b[A\n",
+ "2nd loop: 18%|█▊ | 9/50 [00:00<00:00, 87.80it/s]\u001b[A\n",
+ "2nd loop: 36%|███▌ | 18/50 [00:00<00:00, 87.46it/s]\u001b[A\n",
+ "2nd loop: 54%|█████▍ | 27/50 [00:00<00:00, 86.41it/s]\u001b[A\n",
+ "2nd loop: 72%|███████▏ | 36/50 [00:00<00:00, 86.93it/s]\u001b[A\n",
+ "2nd loop: 90%|█████████ | 45/50 [00:00<00:00, 86.37it/s]\u001b[A\n",
+ "1st loop: 100%|██████████| 3/3 [00:01<00:00, 1.67it/s]\n"
]
}
],
@@ -362,16 +338,14 @@
},
{
"cell_type": "code",
- "execution_count": 52,
+ "execution_count": 24,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "\n",
- "my bar!: 0%| | 0/6 [00:00, ?it/s]\u001b[A\n",
- "my bar!: 100%|██████████| 6/6 [00:00<00:00, 1190.04it/s]\u001b[A"
+ "my bar!: 100%|██████████| 6/6 [00:00<00:00, 411.54it/s]\n"
]
},
{
@@ -406,273 +380,273 @@
"
\n",
" \n",
" 0 | \n",
- " 784 | \n",
- " 7569 | \n",
- " 36 | \n",
- " 8281 | \n",
- " 484 | \n",
- " 225 | \n",
+ " 961 | \n",
+ " 64 | \n",
+ " 1764 | \n",
+ " 5776 | \n",
+ " 400 | \n",
+ " 6889 | \n",
"
\n",
" \n",
" 1 | \n",
- " 169 | \n",
- " 6724 | \n",
- " 7056 | \n",
- " 4489 | \n",
- " 1296 | \n",
- " 25 | \n",
+ " 6084 | \n",
+ " 1444 | \n",
+ " 625 | \n",
+ " 529 | \n",
+ " 4624 | \n",
+ " 4225 | \n",
"
\n",
" \n",
" 2 | \n",
- " 4356 | \n",
- " 529 | \n",
- " 121 | \n",
- " 1225 | \n",
- " 529 | \n",
- " 121 | \n",
+ " 5625 | \n",
+ " 9216 | \n",
+ " 6084 | \n",
+ " 961 | \n",
+ " 8100 | \n",
+ " 5476 | \n",
"
\n",
" \n",
" 3 | \n",
- " 1600 | \n",
- " 64 | \n",
- " 4761 | \n",
- " 2704 | \n",
- " 8464 | \n",
- " 225 | \n",
+ " 7744 | \n",
+ " 2304 | \n",
+ " 6561 | \n",
+ " 7396 | \n",
+ " 400 | \n",
+ " 8100 | \n",
"
\n",
" \n",
" 4 | \n",
- " 361 | \n",
- " 1369 | \n",
- " 169 | \n",
- " 576 | \n",
- " 3481 | \n",
- " 2500 | \n",
+ " 2025 | \n",
+ " 3969 | \n",
+ " 1 | \n",
+ " 1156 | \n",
+ " 1681 | \n",
+ " 196 | \n",
"
\n",
" \n",
" 5 | \n",
- " 1024 | \n",
- " 5776 | \n",
- " 8836 | \n",
- " 8649 | \n",
- " 7056 | \n",
- " 400 | \n",
+ " 3136 | \n",
+ " 1764 | \n",
+ " 16 | \n",
+ " 49 | \n",
+ " 9216 | \n",
+ " 25 | \n",
"
\n",
" \n",
" 6 | \n",
- " 289 | \n",
- " 8649 | \n",
- " 1444 | \n",
- " 2704 | \n",
- " 256 | \n",
- " 1024 | \n",
+ " 6889 | \n",
+ " 7569 | \n",
+ " 7225 | \n",
+ " 5041 | \n",
+ " 400 | \n",
+ " 361 | \n",
"
\n",
" \n",
" 7 | \n",
- " 5184 | \n",
- " 961 | \n",
+ " 64 | \n",
+ " 144 | \n",
+ " 6241 | \n",
" 1681 | \n",
- " 49 | \n",
- " 2704 | \n",
- " 2601 | \n",
+ " 6561 | \n",
+ " 3364 | \n",
"
\n",
" \n",
" 8 | \n",
- " 3969 | \n",
- " 1156 | \n",
- " 400 | \n",
- " 1681 | \n",
- " 2916 | \n",
- " 49 | \n",
+ " 4761 | \n",
+ " 1764 | \n",
+ " 9604 | \n",
+ " 8836 | \n",
+ " 1296 | \n",
+ " 2809 | \n",
"
\n",
" \n",
" 9 | \n",
- " 5776 | \n",
- " 6241 | \n",
- " 3844 | \n",
- " 8649 | \n",
- " 25 | \n",
- " 2809 | \n",
+ " 2601 | \n",
+ " 289 | \n",
+ " 484 | \n",
+ " 2209 | \n",
+ " 1024 | \n",
+ " 1849 | \n",
"
\n",
" \n",
" 10 | \n",
- " 25 | \n",
- " 361 | \n",
- " 8281 | \n",
- " 4225 | \n",
- " 2025 | \n",
- " 4489 | \n",
+ " 36 | \n",
+ " 16 | \n",
+ " 36 | \n",
+ " 3844 | \n",
+ " 3844 | \n",
+ " 1521 | \n",
"
\n",
" \n",
" 11 | \n",
- " 9801 | \n",
- " 2809 | \n",
- " 256 | \n",
- " 8464 | \n",
- " 1936 | \n",
- " 5041 | \n",
+ " 8281 | \n",
+ " 2916 | \n",
+ " 3721 | \n",
+ " 4356 | \n",
+ " 9 | \n",
+ " 5625 | \n",
"
\n",
" \n",
" 12 | \n",
- " 9025 | \n",
- " 4489 | \n",
- " 6084 | \n",
- " 3025 | \n",
- " 3481 | \n",
- " 5041 | \n",
+ " 841 | \n",
+ " 169 | \n",
+ " 6889 | \n",
+ " 8281 | \n",
+ " 9 | \n",
+ " 441 | \n",
"
\n",
" \n",
" 13 | \n",
- " 2401 | \n",
- " 225 | \n",
- " 6084 | \n",
- " 3136 | \n",
- " 5476 | \n",
- " 9604 | \n",
+ " 256 | \n",
+ " 8100 | \n",
+ " 529 | \n",
+ " 4096 | \n",
+ " 2704 | \n",
+ " 4761 | \n",
"
\n",
" \n",
" 14 | \n",
- " 6561 | \n",
- " 3481 | \n",
- " 3844 | \n",
- " 2916 | \n",
- " 9409 | \n",
- " 400 | \n",
+ " 5476 | \n",
+ " 841 | \n",
+ " 1024 | \n",
+ " 81 | \n",
+ " 1849 | \n",
+ " 441 | \n",
"
\n",
" \n",
" 15 | \n",
- " 729 | \n",
- " 9604 | \n",
- " 1 | \n",
- " 4 | \n",
- " 3364 | \n",
- " 3969 | \n",
+ " 9 | \n",
+ " 9801 | \n",
+ " 3844 | \n",
+ " 196 | \n",
+ " 3600 | \n",
+ " 144 | \n",
"
\n",
" \n",
" 16 | \n",
- " 1936 | \n",
- " 5184 | \n",
- " 3969 | \n",
- " 625 | \n",
- " 3969 | \n",
- " 8649 | \n",
+ " 9801 | \n",
+ " 2809 | \n",
+ " 7569 | \n",
+ " 676 | \n",
+ " 7396 | \n",
+ " 7056 | \n",
"
\n",
" \n",
" 17 | \n",
- " 1936 | \n",
- " 7056 | \n",
- " 2809 | \n",
- " 1936 | \n",
- " 5184 | \n",
- " 7225 | \n",
- "
\n",
- " \n",
- " 18 | \n",
- " 361 | \n",
- " 144 | \n",
- " 5476 | \n",
- " 1681 | \n",
- " 961 | \n",
- " 1024 | \n",
- "
\n",
- " \n",
- " 19 | \n",
- " 8464 | \n",
- " 1681 | \n",
- " 9409 | \n",
- " 6889 | \n",
- " 8464 | \n",
- " 256 | \n",
- "
\n",
- " \n",
- " 20 | \n",
- " 3025 | \n",
- " 2401 | \n",
- " 3844 | \n",
- " 1600 | \n",
- " 4096 | \n",
- " 361 | \n",
- "
\n",
- " \n",
- " 21 | \n",
- " 0 | \n",
- " 8100 | \n",
- " 900 | \n",
- " 4489 | \n",
- " 1369 | \n",
+ " 1296 | \n",
+ " 784 | \n",
" 3969 | \n",
- "
\n",
- " \n",
- " 22 | \n",
- " 4489 | \n",
- " 900 | \n",
- " 2916 | \n",
- " 1849 | \n",
- " 3481 | \n",
- " 9 | \n",
- "
\n",
- " \n",
- " 23 | \n",
- " 9216 | \n",
- " 3600 | \n",
- " 3844 | \n",
- " 3481 | \n",
- " 7569 | \n",
- " 5184 | \n",
- "
\n",
- " \n",
- " 24 | \n",
- " 2401 | \n",
- " 1764 | \n",
- " 1369 | \n",
- " 1156 | \n",
- " 256 | \n",
+ " 4900 | \n",
+ " 576 | \n",
" 3721 | \n",
"
\n",
" \n",
- " 25 | \n",
+ " 18 | \n",
+ " 8100 | \n",
+ " 9 | \n",
+ " 1296 | \n",
+ " 7056 | \n",
+ " 1521 | \n",
+ " 9 | \n",
+ "
\n",
+ " \n",
+ " 19 | \n",
+ " 2209 | \n",
+ " 7056 | \n",
+ " 1089 | \n",
" 7396 | \n",
- " 9801 | \n",
+ " 1681 | \n",
+ " 4489 | \n",
+ "
\n",
+ " \n",
+ " 20 | \n",
+ " 625 | \n",
+ " 2500 | \n",
+ " 4356 | \n",
+ " 441 | \n",
+ " 25 | \n",
" 4096 | \n",
- " 144 | \n",
- " 64 | \n",
- " 6400 | \n",
+ "
\n",
+ " \n",
+ " 21 | \n",
+ " 25 | \n",
+ " 16 | \n",
+ " 1849 | \n",
+ " 3136 | \n",
+ " 8836 | \n",
+ " 5476 | \n",
+ "
\n",
+ " \n",
+ " 22 | \n",
+ " 256 | \n",
+ " 3721 | \n",
+ " 3364 | \n",
+ " 169 | \n",
+ " 9604 | \n",
+ " 4489 | \n",
+ "
\n",
+ " \n",
+ " 23 | \n",
+ " 4096 | \n",
+ " 81 | \n",
+ " 9604 | \n",
+ " 625 | \n",
+ " 529 | \n",
+ " 4489 | \n",
+ "
\n",
+ " \n",
+ " 24 | \n",
+ " 2116 | \n",
+ " 4489 | \n",
+ " 1156 | \n",
+ " 8649 | \n",
+ " 5929 | \n",
+ " 900 | \n",
+ "
\n",
+ " \n",
+ " 25 | \n",
+ " 3721 | \n",
+ " 1764 | \n",
+ " 5476 | \n",
+ " 5625 | \n",
+ " 3844 | \n",
+ " 9216 | \n",
"
\n",
" \n",
" 26 | \n",
- " 1849 | \n",
- " 9409 | \n",
- " 5476 | \n",
- " 256 | \n",
- " 6889 | \n",
- " 225 | \n",
+ " 1296 | \n",
+ " 441 | \n",
+ " 1296 | \n",
+ " 324 | \n",
+ " 1296 | \n",
+ " 4096 | \n",
"
\n",
" \n",
" 27 | \n",
- " 5776 | \n",
- " 8836 | \n",
- " 64 | \n",
- " 0 | \n",
- " 1089 | \n",
- " 225 | \n",
+ " 400 | \n",
+ " 7225 | \n",
+ " 7744 | \n",
+ " 1681 | \n",
+ " 361 | \n",
+ " 441 | \n",
"
\n",
" \n",
" 28 | \n",
- " 5329 | \n",
- " 144 | \n",
- " 4489 | \n",
- " 0 | \n",
- " 9 | \n",
- " 9604 | \n",
+ " 7056 | \n",
+ " 7225 | \n",
+ " 400 | \n",
+ " 5625 | \n",
+ " 3721 | \n",
+ " 1369 | \n",
"
\n",
" \n",
" 29 | \n",
+ " 1024 | \n",
" 400 | \n",
- " 5329 | \n",
- " 1681 | \n",
- " 1156 | \n",
- " 1849 | \n",
- " 3600 | \n",
+ " 900 | \n",
+ " 289 | \n",
+ " 4624 | \n",
+ " 4 | \n",
"
\n",
" \n",
" ... | \n",
@@ -685,273 +659,273 @@
"
\n",
" \n",
" 9970 | \n",
- " 8100 | \n",
- " 3721 | \n",
+ " 289 | \n",
+ " 3969 | \n",
+ " 729 | \n",
" 81 | \n",
- " 2916 | \n",
- " 5476 | \n",
- " 5776 | \n",
+ " 529 | \n",
+ " 5625 | \n",
"
\n",
" \n",
" 9971 | \n",
- " 7225 | \n",
- " 2401 | \n",
- " 324 | \n",
- " 676 | \n",
- " 676 | \n",
- " 0 | \n",
+ " 4761 | \n",
+ " 400 | \n",
+ " 8836 | \n",
+ " 9025 | \n",
+ " 9216 | \n",
+ " 3481 | \n",
"
\n",
" \n",
" 9972 | \n",
- " 4 | \n",
- " 1 | \n",
- " 7396 | \n",
- " 576 | \n",
- " 8649 | \n",
+ " 289 | \n",
+ " 2025 | \n",
+ " 8100 | \n",
" 7921 | \n",
+ " 3844 | \n",
+ " 1444 | \n",
"
\n",
" \n",
" 9973 | \n",
+ " 6241 | \n",
" 8464 | \n",
- " 3025 | \n",
- " 225 | \n",
- " 3364 | \n",
- " 16 | \n",
- " 2809 | \n",
+ " 49 | \n",
+ " 5184 | \n",
+ " 441 | \n",
+ " 4356 | \n",
"
\n",
" \n",
" 9974 | \n",
- " 7056 | \n",
- " 400 | \n",
- " 7056 | \n",
- " 2304 | \n",
- " 9409 | \n",
- " 7569 | \n",
- "
\n",
- " \n",
- " 9975 | \n",
- " 1024 | \n",
- " 1225 | \n",
- " 6084 | \n",
- " 9409 | \n",
- " 9801 | \n",
- " 1369 | \n",
- "
\n",
- " \n",
- " 9976 | \n",
- " 7744 | \n",
- " 289 | \n",
- " 2601 | \n",
- " 9216 | \n",
- " 576 | \n",
- " 6400 | \n",
- "
\n",
- " \n",
- " 9977 | \n",
- " 1849 | \n",
- " 4096 | \n",
- " 9801 | \n",
- " 3600 | \n",
- " 6889 | \n",
- " 5041 | \n",
- "
\n",
- " \n",
- " 9978 | \n",
- " 5329 | \n",
- " 6561 | \n",
- " 1156 | \n",
- " 1764 | \n",
- " 784 | \n",
- " 2601 | \n",
- "
\n",
- " \n",
- " 9979 | \n",
- " 6400 | \n",
- " 6084 | \n",
- " 9 | \n",
- " 4761 | \n",
- " 289 | \n",
- " 7921 | \n",
- "
\n",
- " \n",
- " 9980 | \n",
- " 1600 | \n",
- " 2916 | \n",
- " 784 | \n",
- " 2401 | \n",
- " 3721 | \n",
- " 1764 | \n",
- "
\n",
- " \n",
- " 9981 | \n",
- " 6084 | \n",
- " 7744 | \n",
- " 256 | \n",
- " 6400 | \n",
- " 900 | \n",
- " 169 | \n",
- "
\n",
- " \n",
- " 9982 | \n",
- " 5184 | \n",
- " 100 | \n",
- " 5776 | \n",
- " 289 | \n",
- " 1 | \n",
- " 5329 | \n",
- "
\n",
- " \n",
- " 9983 | \n",
- " 2704 | \n",
- " 3364 | \n",
- " 8836 | \n",
- " 1681 | \n",
- " 4900 | \n",
- " 1521 | \n",
- "
\n",
- " \n",
- " 9984 | \n",
- " 81 | \n",
- " 1764 | \n",
- " 4096 | \n",
- " 484 | \n",
- " 6889 | \n",
- " 2601 | \n",
- "
\n",
- " \n",
- " 9985 | \n",
- " 8464 | \n",
- " 7921 | \n",
- " 1444 | \n",
- " 4761 | \n",
- " 3969 | \n",
- " 9409 | \n",
- "
\n",
- " \n",
- " 9986 | \n",
- " 9025 | \n",
- " 4225 | \n",
- " 3249 | \n",
- " 900 | \n",
- " 2809 | \n",
- " 4096 | \n",
- "
\n",
- " \n",
- " 9987 | \n",
- " 2500 | \n",
- " 8100 | \n",
- " 1936 | \n",
- " 289 | \n",
- " 6241 | \n",
- " 5476 | \n",
- "
\n",
- " \n",
- " 9988 | \n",
- " 5776 | \n",
- " 7056 | \n",
- " 169 | \n",
- " 8281 | \n",
- " 6241 | \n",
+ " 196 | \n",
" 2116 | \n",
- "
\n",
- " \n",
- " 9989 | \n",
- " 3844 | \n",
- " 8100 | \n",
- " 169 | \n",
- " 484 | \n",
- " 1936 | \n",
- " 1936 | \n",
- "
\n",
- " \n",
- " 9990 | \n",
- " 4624 | \n",
- " 0 | \n",
- " 5625 | \n",
- " 1681 | \n",
- " 484 | \n",
+ " 196 | \n",
+ " 16 | \n",
+ " 1296 | \n",
" 144 | \n",
"
\n",
" \n",
- " 9991 | \n",
- " 81 | \n",
+ " 9975 | \n",
+ " 7225 | \n",
+ " 1444 | \n",
+ " 2601 | \n",
+ " 361 | \n",
+ " 1936 | \n",
+ " 2025 | \n",
+ "
\n",
+ " \n",
+ " 9976 | \n",
+ " 841 | \n",
+ " 4356 | \n",
+ " 2116 | \n",
+ " 9216 | \n",
+ " 9409 | \n",
" 9801 | \n",
- " 3481 | \n",
+ "
\n",
+ " \n",
+ " 9977 | \n",
" 5776 | \n",
+ " 625 | \n",
+ " 841 | \n",
+ " 1849 | \n",
+ " 4624 | \n",
+ " 4096 | \n",
+ "
\n",
+ " \n",
+ " 9978 | \n",
+ " 676 | \n",
+ " 6889 | \n",
+ " 16 | \n",
+ " 8836 | \n",
+ " 5329 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 9979 | \n",
+ " 361 | \n",
+ " 7056 | \n",
+ " 2401 | \n",
+ " 5329 | \n",
+ " 7396 | \n",
+ " 289 | \n",
+ "
\n",
+ " \n",
+ " 9980 | \n",
+ " 121 | \n",
+ " 169 | \n",
+ " 5184 | \n",
+ " 1681 | \n",
+ " 36 | \n",
+ " 49 | \n",
+ "
\n",
+ " \n",
+ " 9981 | \n",
+ " 36 | \n",
+ " 9801 | \n",
+ " 841 | \n",
+ " 9801 | \n",
+ " 36 | \n",
" 576 | \n",
- " 196 | \n",
+ "
\n",
+ " \n",
+ " 9982 | \n",
+ " 361 | \n",
+ " 3136 | \n",
+ " 1600 | \n",
+ " 8281 | \n",
+ " 5776 | \n",
+ " 361 | \n",
+ "
\n",
+ " \n",
+ " 9983 | \n",
+ " 324 | \n",
+ " 7744 | \n",
+ " 6724 | \n",
+ " 1089 | \n",
+ " 1296 | \n",
+ " 2500 | \n",
+ "
\n",
+ " \n",
+ " 9984 | \n",
+ " 289 | \n",
+ " 6241 | \n",
+ " 121 | \n",
+ " 4225 | \n",
+ " 36 | \n",
+ " 529 | \n",
+ "
\n",
+ " \n",
+ " 9985 | \n",
+ " 4356 | \n",
+ " 5625 | \n",
+ " 7569 | \n",
+ " 6241 | \n",
+ " 7569 | \n",
+ " 5776 | \n",
+ "
\n",
+ " \n",
+ " 9986 | \n",
+ " 3844 | \n",
+ " 1764 | \n",
+ " 3481 | \n",
+ " 5041 | \n",
+ " 1089 | \n",
+ " 4900 | \n",
+ "
\n",
+ " \n",
+ " 9987 | \n",
+ " 5776 | \n",
+ " 2704 | \n",
+ " 6561 | \n",
+ " 7744 | \n",
+ " 100 | \n",
+ " 1369 | \n",
+ "
\n",
+ " \n",
+ " 9988 | \n",
+ " 2601 | \n",
+ " 441 | \n",
+ " 7744 | \n",
+ " 4 | \n",
+ " 1296 | \n",
+ " 7921 | \n",
+ "
\n",
+ " \n",
+ " 9989 | \n",
+ " 64 | \n",
+ " 6084 | \n",
+ " 36 | \n",
+ " 625 | \n",
+ " 4624 | \n",
+ " 9216 | \n",
+ "
\n",
+ " \n",
+ " 9990 | \n",
+ " 49 | \n",
+ " 9025 | \n",
+ " 9025 | \n",
+ " 1225 | \n",
+ " 4 | \n",
+ " 441 | \n",
+ "
\n",
+ " \n",
+ " 9991 | \n",
+ " 8281 | \n",
+ " 2916 | \n",
+ " 121 | \n",
+ " 576 | \n",
+ " 7225 | \n",
+ " 9801 | \n",
"
\n",
" \n",
" 9992 | \n",
- " 625 | \n",
- " 1369 | \n",
- " 841 | \n",
- " 8100 | \n",
- " 4900 | \n",
- " 3025 | \n",
+ " 8836 | \n",
+ " 1600 | \n",
+ " 8836 | \n",
+ " 1089 | \n",
+ " 3844 | \n",
+ " 529 | \n",
"
\n",
" \n",
" 9993 | \n",
- " 49 | \n",
- " 1296 | \n",
- " 36 | \n",
- " 6241 | \n",
- " 4489 | \n",
- " 6084 | \n",
+ " 1444 | \n",
+ " 2116 | \n",
+ " 7396 | \n",
+ " 361 | \n",
+ " 4624 | \n",
+ " 2916 | \n",
"
\n",
" \n",
" 9994 | \n",
- " 625 | \n",
- " 4 | \n",
- " 81 | \n",
+ " 4900 | \n",
+ " 121 | \n",
+ " 676 | \n",
" 9216 | \n",
- " 6241 | \n",
- " 7396 | \n",
+ " 9604 | \n",
+ " 3481 | \n",
"
\n",
" \n",
" 9995 | \n",
- " 3249 | \n",
- " 7396 | \n",
- " 2025 | \n",
- " 1849 | \n",
" 5041 | \n",
- " 8464 | \n",
+ " 6400 | \n",
+ " 784 | \n",
+ " 6400 | \n",
+ " 400 | \n",
+ " 1600 | \n",
"
\n",
" \n",
" 9996 | \n",
- " 676 | \n",
" 1225 | \n",
- " 2916 | \n",
- " 1225 | \n",
- " 8100 | \n",
- " 3249 | \n",
+ " 4900 | \n",
+ " 6241 | \n",
+ " 961 | \n",
+ " 784 | \n",
+ " 5184 | \n",
"
\n",
" \n",
" 9997 | \n",
- " 0 | \n",
- " 3249 | \n",
- " 196 | \n",
- " 5929 | \n",
- " 625 | \n",
- " 1024 | \n",
+ " 9025 | \n",
+ " 529 | \n",
+ " 1 | \n",
+ " 8281 | \n",
+ " 121 | \n",
+ " 900 | \n",
"
\n",
" \n",
" 9998 | \n",
- " 1156 | \n",
- " 4761 | \n",
- " 9216 | \n",
- " 4489 | \n",
+ " 36 | \n",
+ " 36 | \n",
+ " 256 | \n",
+ " 400 | \n",
+ " 9801 | \n",
" 9409 | \n",
- " 7396 | \n",
"
\n",
" \n",
" 9999 | \n",
- " 7396 | \n",
- " 64 | \n",
- " 5329 | \n",
- " 9 | \n",
- " 1444 | \n",
- " 7569 | \n",
+ " 7921 | \n",
+ " 36 | \n",
+ " 2500 | \n",
+ " 36 | \n",
+ " 841 | \n",
+ " 2809 | \n",
"
\n",
" \n",
"\n",
@@ -960,72 +934,72 @@
],
"text/plain": [
" 0 1 2 3 4 5\n",
- "0 784 7569 36 8281 484 225\n",
- "1 169 6724 7056 4489 1296 25\n",
- "2 4356 529 121 1225 529 121\n",
- "3 1600 64 4761 2704 8464 225\n",
- "4 361 1369 169 576 3481 2500\n",
- "5 1024 5776 8836 8649 7056 400\n",
- "6 289 8649 1444 2704 256 1024\n",
- "7 5184 961 1681 49 2704 2601\n",
- "8 3969 1156 400 1681 2916 49\n",
- "9 5776 6241 3844 8649 25 2809\n",
- "10 25 361 8281 4225 2025 4489\n",
- "11 9801 2809 256 8464 1936 5041\n",
- "12 9025 4489 6084 3025 3481 5041\n",
- "13 2401 225 6084 3136 5476 9604\n",
- "14 6561 3481 3844 2916 9409 400\n",
- "15 729 9604 1 4 3364 3969\n",
- "16 1936 5184 3969 625 3969 8649\n",
- "17 1936 7056 2809 1936 5184 7225\n",
- "18 361 144 5476 1681 961 1024\n",
- "19 8464 1681 9409 6889 8464 256\n",
- "20 3025 2401 3844 1600 4096 361\n",
- "21 0 8100 900 4489 1369 3969\n",
- "22 4489 900 2916 1849 3481 9\n",
- "23 9216 3600 3844 3481 7569 5184\n",
- "24 2401 1764 1369 1156 256 3721\n",
- "25 7396 9801 4096 144 64 6400\n",
- "26 1849 9409 5476 256 6889 225\n",
- "27 5776 8836 64 0 1089 225\n",
- "28 5329 144 4489 0 9 9604\n",
- "29 400 5329 1681 1156 1849 3600\n",
+ "0 961 64 1764 5776 400 6889\n",
+ "1 6084 1444 625 529 4624 4225\n",
+ "2 5625 9216 6084 961 8100 5476\n",
+ "3 7744 2304 6561 7396 400 8100\n",
+ "4 2025 3969 1 1156 1681 196\n",
+ "5 3136 1764 16 49 9216 25\n",
+ "6 6889 7569 7225 5041 400 361\n",
+ "7 64 144 6241 1681 6561 3364\n",
+ "8 4761 1764 9604 8836 1296 2809\n",
+ "9 2601 289 484 2209 1024 1849\n",
+ "10 36 16 36 3844 3844 1521\n",
+ "11 8281 2916 3721 4356 9 5625\n",
+ "12 841 169 6889 8281 9 441\n",
+ "13 256 8100 529 4096 2704 4761\n",
+ "14 5476 841 1024 81 1849 441\n",
+ "15 9 9801 3844 196 3600 144\n",
+ "16 9801 2809 7569 676 7396 7056\n",
+ "17 1296 784 3969 4900 576 3721\n",
+ "18 8100 9 1296 7056 1521 9\n",
+ "19 2209 7056 1089 7396 1681 4489\n",
+ "20 625 2500 4356 441 25 4096\n",
+ "21 25 16 1849 3136 8836 5476\n",
+ "22 256 3721 3364 169 9604 4489\n",
+ "23 4096 81 9604 625 529 4489\n",
+ "24 2116 4489 1156 8649 5929 900\n",
+ "25 3721 1764 5476 5625 3844 9216\n",
+ "26 1296 441 1296 324 1296 4096\n",
+ "27 400 7225 7744 1681 361 441\n",
+ "28 7056 7225 400 5625 3721 1369\n",
+ "29 1024 400 900 289 4624 4\n",
"... ... ... ... ... ... ...\n",
- "9970 8100 3721 81 2916 5476 5776\n",
- "9971 7225 2401 324 676 676 0\n",
- "9972 4 1 7396 576 8649 7921\n",
- "9973 8464 3025 225 3364 16 2809\n",
- "9974 7056 400 7056 2304 9409 7569\n",
- "9975 1024 1225 6084 9409 9801 1369\n",
- "9976 7744 289 2601 9216 576 6400\n",
- "9977 1849 4096 9801 3600 6889 5041\n",
- "9978 5329 6561 1156 1764 784 2601\n",
- "9979 6400 6084 9 4761 289 7921\n",
- "9980 1600 2916 784 2401 3721 1764\n",
- "9981 6084 7744 256 6400 900 169\n",
- "9982 5184 100 5776 289 1 5329\n",
- "9983 2704 3364 8836 1681 4900 1521\n",
- "9984 81 1764 4096 484 6889 2601\n",
- "9985 8464 7921 1444 4761 3969 9409\n",
- "9986 9025 4225 3249 900 2809 4096\n",
- "9987 2500 8100 1936 289 6241 5476\n",
- "9988 5776 7056 169 8281 6241 2116\n",
- "9989 3844 8100 169 484 1936 1936\n",
- "9990 4624 0 5625 1681 484 144\n",
- "9991 81 9801 3481 5776 576 196\n",
- "9992 625 1369 841 8100 4900 3025\n",
- "9993 49 1296 36 6241 4489 6084\n",
- "9994 625 4 81 9216 6241 7396\n",
- "9995 3249 7396 2025 1849 5041 8464\n",
- "9996 676 1225 2916 1225 8100 3249\n",
- "9997 0 3249 196 5929 625 1024\n",
- "9998 1156 4761 9216 4489 9409 7396\n",
- "9999 7396 64 5329 9 1444 7569\n",
+ "9970 289 3969 729 81 529 5625\n",
+ "9971 4761 400 8836 9025 9216 3481\n",
+ "9972 289 2025 8100 7921 3844 1444\n",
+ "9973 6241 8464 49 5184 441 4356\n",
+ "9974 196 2116 196 16 1296 144\n",
+ "9975 7225 1444 2601 361 1936 2025\n",
+ "9976 841 4356 2116 9216 9409 9801\n",
+ "9977 5776 625 841 1849 4624 4096\n",
+ "9978 676 6889 16 8836 5329 1\n",
+ "9979 361 7056 2401 5329 7396 289\n",
+ "9980 121 169 5184 1681 36 49\n",
+ "9981 36 9801 841 9801 36 576\n",
+ "9982 361 3136 1600 8281 5776 361\n",
+ "9983 324 7744 6724 1089 1296 2500\n",
+ "9984 289 6241 121 4225 36 529\n",
+ "9985 4356 5625 7569 6241 7569 5776\n",
+ "9986 3844 1764 3481 5041 1089 4900\n",
+ "9987 5776 2704 6561 7744 100 1369\n",
+ "9988 2601 441 7744 4 1296 7921\n",
+ "9989 64 6084 36 625 4624 9216\n",
+ "9990 49 9025 9025 1225 4 441\n",
+ "9991 8281 2916 121 576 7225 9801\n",
+ "9992 8836 1600 8836 1089 3844 529\n",
+ "9993 1444 2116 7396 361 4624 2916\n",
+ "9994 4900 121 676 9216 9604 3481\n",
+ "9995 5041 6400 784 6400 400 1600\n",
+ "9996 1225 4900 6241 961 784 5184\n",
+ "9997 9025 529 1 8281 121 900\n",
+ "9998 36 36 256 400 9801 9409\n",
+ "9999 7921 36 2500 36 841 2809\n",
"\n",
"[10000 rows x 6 columns]"
]
},
- "execution_count": 52,
+ "execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
@@ -1061,14 +1035,14 @@
},
{
"cell_type": "code",
- "execution_count": 55,
+ "execution_count": 25,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- " 20%|██ | 2/10 [00:00<00:00, 9.75it/s]"
+ " 20%|██ | 2/10 [00:00<00:00, 9.40it/s]"
]
},
{
@@ -1082,7 +1056,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
- " 50%|█████ | 5/10 [00:00<00:00, 9.82it/s]"
+ " 50%|█████ | 5/10 [00:00<00:00, 9.50it/s]"
]
},
{
@@ -1096,7 +1070,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
- " 80%|████████ | 8/10 [00:00<00:00, 9.83it/s]"
+ " 80%|████████ | 8/10 [00:00<00:00, 9.49it/s]"
]
},
{
@@ -1110,7 +1084,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
- "100%|██████████| 10/10 [00:01<00:00, 9.79it/s]"
+ "100%|██████████| 10/10 [00:01<00:00, 9.42it/s]"
]
},
{