├── .gitignore ├── .gitmodules ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── _assets └── framework.png ├── difflogic ├── __init__.py ├── cli.py ├── dataset │ ├── __init__.py │ ├── graph │ │ ├── __init__.py │ │ ├── dataset.py │ │ └── family.py │ └── utils.py ├── envs │ ├── __init__.py │ ├── algorithmic │ │ ├── __init__.py │ │ ├── quickaccess.py │ │ └── sort_envs.py │ ├── blocksworld │ │ ├── __init__.py │ │ ├── block.py │ │ ├── envs.py │ │ ├── quickaccess.py │ │ └── represent.py │ ├── graph │ │ ├── __init__.py │ │ ├── graph.py │ │ ├── graph_env.py │ │ └── quickaccess.py │ └── utils.py ├── nn │ ├── __init__.py │ ├── baselines │ │ ├── __init__.py │ │ ├── lstm.py │ │ └── memory_net.py │ ├── neural_logic │ │ ├── __init__.py │ │ ├── layer.py │ │ └── modules │ │ │ ├── __init__.py │ │ │ ├── _utils.py │ │ │ ├── dimension.py │ │ │ ├── input_transform.py │ │ │ └── neural_logic.py │ └── rl │ │ ├── __init__.py │ │ └── reinforce.py ├── thutils.py ├── tqdm_utils.py └── train │ ├── __init__.py │ └── train.py ├── models ├── blocksworld.pth ├── path.pth └── sort.pth ├── requirements.txt ├── scripts ├── blocksworld │ ├── README.md │ └── learn_policy.py └── graph │ ├── README.md │ ├── learn_graph_tasks.py │ └── learn_policy.py ├── third_party └── js_lib │ ├── d3.v4.js │ └── jquery-3.3.1.js └── vis ├── README.md ├── blocksworld.html ├── blocksworld.json ├── path.html ├── path.json ├── sort.html └── sort.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/.gitmodules -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/README.md -------------------------------------------------------------------------------- /_assets/framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/_assets/framework.png -------------------------------------------------------------------------------- /difflogic/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/__init__.py -------------------------------------------------------------------------------- /difflogic/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/cli.py -------------------------------------------------------------------------------- /difflogic/dataset/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/dataset/__init__.py -------------------------------------------------------------------------------- /difflogic/dataset/graph/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/dataset/graph/__init__.py -------------------------------------------------------------------------------- /difflogic/dataset/graph/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/dataset/graph/dataset.py -------------------------------------------------------------------------------- /difflogic/dataset/graph/family.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/dataset/graph/family.py -------------------------------------------------------------------------------- /difflogic/dataset/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/dataset/utils.py -------------------------------------------------------------------------------- /difflogic/envs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/__init__.py -------------------------------------------------------------------------------- /difflogic/envs/algorithmic/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/algorithmic/__init__.py -------------------------------------------------------------------------------- /difflogic/envs/algorithmic/quickaccess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/algorithmic/quickaccess.py -------------------------------------------------------------------------------- /difflogic/envs/algorithmic/sort_envs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/algorithmic/sort_envs.py -------------------------------------------------------------------------------- /difflogic/envs/blocksworld/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/blocksworld/__init__.py -------------------------------------------------------------------------------- /difflogic/envs/blocksworld/block.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/blocksworld/block.py -------------------------------------------------------------------------------- /difflogic/envs/blocksworld/envs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/blocksworld/envs.py -------------------------------------------------------------------------------- /difflogic/envs/blocksworld/quickaccess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/blocksworld/quickaccess.py -------------------------------------------------------------------------------- /difflogic/envs/blocksworld/represent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/blocksworld/represent.py -------------------------------------------------------------------------------- /difflogic/envs/graph/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/graph/__init__.py -------------------------------------------------------------------------------- /difflogic/envs/graph/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/graph/graph.py -------------------------------------------------------------------------------- /difflogic/envs/graph/graph_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/graph/graph_env.py -------------------------------------------------------------------------------- /difflogic/envs/graph/quickaccess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/graph/quickaccess.py -------------------------------------------------------------------------------- /difflogic/envs/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/envs/utils.py -------------------------------------------------------------------------------- /difflogic/nn/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/__init__.py -------------------------------------------------------------------------------- /difflogic/nn/baselines/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/baselines/__init__.py -------------------------------------------------------------------------------- /difflogic/nn/baselines/lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/baselines/lstm.py -------------------------------------------------------------------------------- /difflogic/nn/baselines/memory_net.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/baselines/memory_net.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/__init__.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/layer.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/modules/__init__.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/modules/_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/modules/_utils.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/modules/dimension.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/modules/dimension.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/modules/input_transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/modules/input_transform.py -------------------------------------------------------------------------------- /difflogic/nn/neural_logic/modules/neural_logic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/neural_logic/modules/neural_logic.py -------------------------------------------------------------------------------- /difflogic/nn/rl/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/rl/__init__.py -------------------------------------------------------------------------------- /difflogic/nn/rl/reinforce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/nn/rl/reinforce.py -------------------------------------------------------------------------------- /difflogic/thutils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/thutils.py -------------------------------------------------------------------------------- /difflogic/tqdm_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/tqdm_utils.py -------------------------------------------------------------------------------- /difflogic/train/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/train/__init__.py -------------------------------------------------------------------------------- /difflogic/train/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/difflogic/train/train.py -------------------------------------------------------------------------------- /models/blocksworld.pth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/models/blocksworld.pth -------------------------------------------------------------------------------- /models/path.pth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/models/path.pth -------------------------------------------------------------------------------- /models/sort.pth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/models/sort.pth -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | numpy 2 | tqdm 3 | -------------------------------------------------------------------------------- /scripts/blocksworld/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/scripts/blocksworld/README.md -------------------------------------------------------------------------------- /scripts/blocksworld/learn_policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/scripts/blocksworld/learn_policy.py -------------------------------------------------------------------------------- /scripts/graph/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/scripts/graph/README.md -------------------------------------------------------------------------------- /scripts/graph/learn_graph_tasks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/scripts/graph/learn_graph_tasks.py -------------------------------------------------------------------------------- /scripts/graph/learn_policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/scripts/graph/learn_policy.py -------------------------------------------------------------------------------- /third_party/js_lib/d3.v4.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/third_party/js_lib/d3.v4.js -------------------------------------------------------------------------------- /third_party/js_lib/jquery-3.3.1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/third_party/js_lib/jquery-3.3.1.js -------------------------------------------------------------------------------- /vis/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/README.md -------------------------------------------------------------------------------- /vis/blocksworld.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/blocksworld.html -------------------------------------------------------------------------------- /vis/blocksworld.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/blocksworld.json -------------------------------------------------------------------------------- /vis/path.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/path.html -------------------------------------------------------------------------------- /vis/path.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/path.json -------------------------------------------------------------------------------- /vis/sort.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/sort.html -------------------------------------------------------------------------------- /vis/sort.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/neural-logic-machines/HEAD/vis/sort.json --------------------------------------------------------------------------------