google / neural-logic-machines

Implementation for the Neural Logic Machines (NLM).
https://sites.google.com/view/neural-logic-machines
Apache License 2.0
283 stars 47 forks source link

How to extend to other dataset benchmarks? #2

Open brenowca opened 4 years ago

brenowca commented 4 years ago

Hi, I am trying to apply the NLM to other graph datasets, but I am a little confused on how to do it given the structure of the training script.

For instance, could you please shed some light on how to adapt the running scripts for other datasets like the Countries dataset*, that are bigger than the cases you presented in the paper and are also fixed (not randomly generated during each epoch)?

Thank you in advance for your time :)

dhh1995 commented 4 years ago

Thanks for your interest in our work. To adapt the training script for new dataset, you need to have a dataset wrapper to take in the fixed dataset, specify the data format (input, label, etc.), provide the data to the trainer (take a look at how our data provider works), and change the network structure accordingly (by changing parameters like depth, etc.) for the new problem.