Browse Source

[MNT] modify table style of result of mnist

pull/7/head
Gao Enhao 1 year ago
parent
commit
98ca808b16
3 changed files with 112 additions and 27 deletions
  1. +41
    -14
      docs/Examples/MNISTAdd.rst
  2. +31
    -6
      examples/mnist_add/README.md
  3. +40
    -7
      examples/mnist_add/mnist_add.ipynb

+ 41
- 14
docs/Examples/MNISTAdd.rst View File

@@ -381,17 +381,44 @@ We present the results of ABL as follows, which include the reasoning accuracy (
- `DeepProbLog <https://github.com/ML-KULeuven/deepproblog>`_: An extension of ProbLog by introducing neural predicates in Probabilistic Logic Programming;
- `DeepStochLog <https://github.com/ML-KULeuven/deepstochlog>`_: A neural-symbolic framework based on stochastic logic program.

.. table::
:class: centered

+--------------+----------+------------------------------+
| Method | Accuracy | Time to achieve the Acc. (s) |
+==============+==========+==============================+
| NeurASP | 0.962 | 966 |
+--------------+----------+------------------------------+
| DeepProbLog | 0.971 | 2045 |
+--------------+----------+------------------------------+
| DeepStochLog | 0.975 | 257 |
+--------------+----------+------------------------------+
| ABL | 0.981 | 47 |
+--------------+----------+------------------------------+
.. raw:: html

<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;margin-bottom:20px;}
.tg td, .tg th {border:1px solid #ddd;padding:10px 15px;text-align:center;}
.tg th {background-color:#f5f5f5;color:#333333;}
.tg tr:nth-child(even) {background-color:#f9f9f9;}
.tg tr:nth-child(odd) {background-color:#ffffff;}
</style>

<table class="tg" style="margin-left: auto; margin-right: auto;">
<thead>
<tr>
<th>Method</th>
<th>Accuracy</th>
<th>Time to achieve the Acc. (s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>NeurASP</td>
<td>96.2</td>
<td>966</td>
</tr>
<tr>
<td>DeepProbLog</td>
<td>97.1</td>
<td>2045</td>
</tr>
<tr>
<td>DeepStochLog</td>
<td>97.5</td>
<td>257</td>
</tr>
<tr>
<td>ABL</td>
<td><span style="font-weight:bold">98.1</span></td>
<td><span style="font-weight:bold">47</span></td>
</tr>
</tbody>
</table>

+ 31
- 6
examples/mnist_add/README.md View File

@@ -56,9 +56,34 @@ We present the results of ABL as follows, which include the reasoning accuracy (
- [**DeepProbLog**](https://github.com/ML-KULeuven/deepproblog): An extension of ProbLog by introducing neural predicates in Probabilistic Logic Programming;
- [**DeepStochLog**](https://github.com/ML-KULeuven/deepstochlog): A neural-symbolic framework based on stochastic logic program.

| Method | Accuracy | Time to achieve the Acc. (s) |
| :----------: | :------: | :--------------------------: |
| NeurASP | 0.962 | 966 |
| DeepProbLog | 0.971 | 2045 |
| DeepStochLog | 0.975 | 257 |
| ABL | 0.981 | 47 |
<table class="tg" style="margin-left: auto; margin-right: auto;">
<thead>
<tr>
<th>Method</th>
<th>Accuracy</th>
<th>Time to achieve the Acc. (s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>NeurASP</td>
<td>96.2</td>
<td>966</td>
</tr>
<tr>
<td>DeepProbLog</td>
<td>97.1</td>
<td>2045</td>
</tr>
<tr>
<td>DeepStochLog</td>
<td>97.5</td>
<td>257</td>
</tr>
<tr>
<td>ABL</td>
<td><span style="font-weight:bold">98.1</span></td>
<td><span style="font-weight:bold">47</span></td>
</tr>
</tbody>
</table>

+ 40
- 7
examples/mnist_add/mnist_add.ipynb View File

@@ -479,12 +479,45 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"| Method | Accuracy | Time to achieve the Acc. (s) |\n",
"| :----------: | :------: | :--------------------------: |\n",
"| NeurASP | 0.962 | 966 |\n",
"| DeepProbLog | 0.971 | 2045 |\n",
"| DeepStochLog | 0.975 | 257 |\n",
"| ABL | 0.981 | 47 |"
"<style type=\"text/css\">\n",
".tg {border-collapse:collapse;border-spacing:0;margin-bottom:20px;}\n",
".tg td, .tg th {border:1px solid #ddd;padding:10px 15px;text-align:center;}\n",
".tg th {background-color:#f5f5f5;color:#333333;}\n",
".tg tr:nth-child(even) {background-color:#f9f9f9;}\n",
".tg tr:nth-child(odd) {background-color:#ffffff;}\n",
"</style>\n",
"\n",
"<table class=\"tg\" style=\"margin-left: auto; margin-right: auto;\">\n",
"<thead>\n",
"<tr>\n",
" <th>Method</th>\n",
" <th>Accuracy</th>\n",
" <th>Time to achieve the Acc. (s)</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
" <td>NeurASP</td>\n",
" <td>96.2</td>\n",
" <td>966</td>\n",
"</tr>\n",
"<tr>\n",
" <td>DeepProbLog</td>\n",
" <td>97.1</td>\n",
" <td>2045</td>\n",
"</tr>\n",
"<tr>\n",
" <td>DeepStochLog</td>\n",
" <td>97.5</td>\n",
" <td>257</td>\n",
"</tr>\n",
"<tr>\n",
" <td>ABL</td>\n",
" <td><span style=\"font-weight:bold\">98.1</span></td>\n",
"<td><span style=\"font-weight:bold\">47</span></td>\n",
"</tr>\n",
"</tbody>\n",
"</table>\n"
]
}
],
@@ -504,7 +537,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.8.18"
},
"orig_nbformat": 4,
"vscode": {


Loading…
Cancel
Save