From 9d9684723846c3e63af3913e78ee45d39e474665 Mon Sep 17 00:00:00 2001 From: troyyyyy <49091847+troyyyyy@users.noreply.github.com> Date: Fri, 3 Mar 2023 18:42:19 +0800 Subject: [PATCH] Rearrange abduce_by_GKB and address_by_idx to Base --- abl/abducer/kb.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/abl/abducer/kb.py b/abl/abducer/kb.py index 7c494c5..8db7bba 100644 --- a/abl/abducer/kb.py +++ b/abl/abducer/kb.py @@ -10,6 +10,19 @@ # # ================================================================# +from abc import ABC, abstractmethod +import bisect +import copy +import numpy as np + +from collections import defaultdict +from itertools import product, combinations +from ..utils.utils import flatten, reform_idx, hamming_dist, check_equal + +from multiprocessing import Pool + +import pyswip + class KBBase(ABC): def __init__(self, pseudo_label_list=None, len_list=None, GKB_flag=False, max_err=0): self.pseudo_label_list = pseudo_label_list