diff --git a/abl/abducer/abducer_base.py b/abl/abducer/abducer_base.py index c5527f9..b7e6526 100644 --- a/abl/abducer/abducer_base.py +++ b/abl/abducer/abducer_base.py @@ -10,13 +10,10 @@ # # ================================================================# -import sys -sys.path.append('/home/huwc/ABL-Package/abl/') - import abc import numpy as np from zoopt import Dimension, Objective, Parameter, Opt -from utils.utils import confidence_dist, flatten, reform_idx, hamming_dist +from ..utils.utils import confidence_dist, flatten, reform_idx, hamming_dist class AbducerBase(abc.ABC): def __init__(self, kb, dist_func='hamming', zoopt=False): diff --git a/abl/abducer/kb.py b/abl/abducer/kb.py index 42a5f6c..f7d8091 100644 --- a/abl/abducer/kb.py +++ b/abl/abducer/kb.py @@ -17,7 +17,7 @@ import numpy as np from collections import defaultdict from itertools import product, combinations -from utils.utils import flatten, reform_idx, hamming_dist, check_equal, to_hashable, hashable_to_list +from ..utils.utils import flatten, reform_idx, hamming_dist, check_equal, to_hashable, hashable_to_list from multiprocessing import Pool