Skip to content

External reasoners never used during fitting for reasoner-based concept learners #522

@Louis-Mozart

Description

@Louis-Mozart

When initializing a reasoner-based concept learner with an external reasoner, it always uses the default reasoner at fitting time. For instance, if I initialize CELOE (Or any order) as follows:

neural_owl_reasoner = TripleStoreNeuralReasoner(path_of_kb=args.kb, gamma=0.9)

celoe = CELOE(knowledge_base=args.kb, reasoner=neural_owl_reasoner, quality_func=F1(), max_runtime=args.max_runtime)

Then at the fitting time, celoe.fit(lp, verbose=False), the neural_owl_reasoner is never used, but at predictions time, predictions_celoe = celoe.predict(individuals=list(typed_pos | typed_neg), hypotheses=hypotheses) , that is only when the owl reasoner is used and if we predict directly doing pred_celoe = celoe.fit(lp).best_hypotheses(n=1), the owl reasoner is even never used neither at fitting time nor at prediction time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions