-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have been testing Evolearner with a knowledge graph stored in a triple store, and it appears that Evolearner does not properly handle some special XML Schema datatypes.
As far as I know: http://www.w3.org/2001/XMLSchema#int and http://www.w3.org/2001/XMLSchema#decimal didn't work and will cause error:
Traceback (most recent call last):
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/examples/Evolearner/Evolearner_Triple_Store.py", line 39, in <module>
model.fit(lp)
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/ontolearn/concept_learner.py", line 421, in fit
population = self._initialize(learning_problem.pos, learning_problem.neg)
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/ontolearn/concept_learner.py", line 450, in _initialize
population = self.toolbox.population(population_size=self.population_size, pos=list(pos),
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/ontolearn/ea_initialization.py", line 193, in get_population
population.append(container(self.get_expression(pset, ind)))
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/ontolearn/ea_initialization.py", line 221, in get_expression
self._build_split_property(expr, pair, pset)
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/ontolearn/ea_initialization.py", line 341, in _build_split_property
nearest_value = min(splits, key=lambda k: abs(k.to_python()-target)) if len(splits) > 0 else 0
File "/home/quannian/PycharmProjects/Explainable_triple_store/Ontolearn0.9.0/ontolearn/ea_initialization.py", line 341, in <lambda>
nearest_value = min(splits, key=lambda k: abs(k.to_python()-target)) if len(splits) > 0 else 0
TypeError: unsupported operand type(s) for -: 'str' and 'str'
alkidbaci and Demirrr
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working