Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
3 months ago | |
---|---|---|
.. | ||
datasets | 3 months ago | |
models | 1 year ago | |
reasoning | 1 year ago | |
weights | 2 years ago | |
README.md | 1 year ago | |
bridge.py | 1 year ago | |
consistency_metric.py | 1 year ago | |
hed.ipynb | 1 year ago | |
main.py | 1 year ago | |
requirements.txt | 1 year ago | |
utils.py | 1 year ago |
This notebook shows an implementation of Handwritten Equation Decipherment. In this task, the handwritten equations are given, which consist of sequential pictures of characters. The equations are generated with unknown operation rules from images of symbols ('0', '1', '+' and '='), and each equation is associated with a label indicating whether the equation is correct (i.e., positive) or not (i.e., negative). Also, we are given a knowledge base which involves the structure of the equations and a recursive definition of bit-wise operations. The task is to learn from a training set of above mentioned equations and then to predict labels of unseen equations.
pip install -r requirements.txt
python main.py
usage: main.py [-h] [--no-cuda] [--epochs EPOCHS] [--lr LR]
[--weight-decay WEIGHT_DECAY] [--batch-size BATCH_SIZE]
[--loops LOOPS] [--segment_size SEGMENT_SIZE]
[--save_interval SAVE_INTERVAL] [--max-revision MAX_REVISION]
[--require-more-revision REQUIRE_MORE_REVISION]
[--ground] [--max-err MAX_ERR]
Handwritten Equation Decipherment example
optional arguments:
-h, --help show this help message and exit
--no-cuda disables CUDA training
--epochs EPOCHS number of epochs in each learning loop iteration
(default : 1)
--lr LR base model learning rate (default : 0.001)
--weight-decay WEIGHT_DECAY
weight decay (default : 0.0001)
--batch-size BATCH_SIZE
base model batch size (default : 32)
--save_interval SAVE_INTERVAL
save interval (default : 1)
--max-revision MAX_REVISION
maximum revision in reasoner (default : 10)
An efficient Python toolkit for Abductive Learning (ABL), a novel paradigm that integrates machine learning and logical reasoning in a unified framework.
Python other