ANN for logic rules initial results

Played around with an initial go at training Weka’s Multilayer Perceptron to learn pattern matching for logic rules. The first dataset I used consisted of positive instances of MP and negative instances of affirming the consequent. I also tried a dataset with positive instances of MT and negative instances of denying the antecedent.

I had hoped that the network would learn the matching rule “If the main connectives in the instance match the connectives in the rule pattern and the variables in the instance are in the same relations to each other as the corresponding variables in the rule pattern, then the instance fits the rule.” Unfortunately, training on one rule’s dataset and testing on the other yielded bad performance. Interestingly, training on the MT dataset and testing on the MP set yielded an inverted classification: the network classified fitting instances as non-fitting and vice versa. Finally, combining the two datasets and using a percentage split for training/testing yielded good results.

You must be logged in to post a comment.