Skip to content

Commit

Permalink
Refactoring (due to owlapy 1.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed May 31, 2024
1 parent f66027a commit b012dee
Show file tree
Hide file tree
Showing 19 changed files with 182 additions and 3,955 deletions.
6 changes: 3 additions & 3 deletions examples/evaluation_table_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

try:
from ontolearn.knowledge_base import KnowledgeBase
from ontolearn_light.learning_problem import PosNegLPStandard
from ontolearn_light.metrics import F1, Accuracy
from ontolearn.learning_problem import PosNegLPStandard
from ontolearn.metrics import F1, Accuracy
from ontolearn.concept_learner import EvoLearner, CELOE # <--- pip install ontolearn
except ModuleNotFoundError:
from ontolearn_light.knowledge_base import KnowledgeBase
Expand Down Expand Up @@ -77,7 +77,7 @@ def start(args):
for i in range(0, iterations):
kb = KnowledgeBase(path=settings['data_path'])
if smp == "RN":
sampler = NodeSampler(kb)
sampler = RandomNodeSampler(kb)
is_lpc = False
elif smp == "RW":
sampler = RandomWalkSampler(kb)
Expand Down
2 changes: 1 addition & 1 deletion ontolearn_light/abstracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Set, List, Tuple, Iterable, TypeVar, Generic, ClassVar, Optional
from owlapy.class_expression import OWLClassExpression
from owlapy.owl_ontology import OWLOntology
from owlapy.util import iter_count
from owlapy.utils import iter_count
from .data_struct import Experience
from .utils import read_csv
from collections import OrderedDict
Expand Down
9 changes: 0 additions & 9 deletions ontolearn_light/base/__init__.py

This file was deleted.

867 changes: 0 additions & 867 deletions ontolearn_light/base/_base.py

This file was deleted.

681 changes: 0 additions & 681 deletions ontolearn_light/base/axioms.py

This file was deleted.

99 changes: 0 additions & 99 deletions ontolearn_light/base/complex_ce_instances.py

This file was deleted.

96 changes: 0 additions & 96 deletions ontolearn_light/base/ext/__init__.py

This file was deleted.

Loading

0 comments on commit b012dee

Please sign in to comment.