Browse Source

Rearrange abduce_by_GKB and address_by_idx to Base

pull/3/head
troyyyyy GitHub 3 years ago
parent
commit
9d96847238
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      abl/abducer/kb.py

+ 13
- 0
abl/abducer/kb.py View File

@@ -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


Loading…
Cancel
Save