예제 #1
0
파일: parallel.py 프로젝트: housleyjk/fcaml
 def run(self):
     while True:
         data= self.input.get()
         contexts = find_children(array([]), data.context, data.index, data.lattice, self.printer)
         contexts = append(contexts, Context(*data.context))
         self.printer.acquire()
         sys.stdout.write("Input length: %d   \r" % self.input.qsize())
         self.printer.release()
         self.output.put(contexts)
예제 #2
0
파일: lattice.py 프로젝트: housleyjk/fcaml
 def make_concepts_only(self):
     top = (frozenset([ind for ind, v in enumerate(self.extent)]), [0 for i in self.intent])
     find_children([], top, 0, self, False)
예제 #3
0
파일: lattice.py 프로젝트: housleyjk/fcaml
 def build_lattice(self, verbose=False):
     top = (frozenset([ind for ind, v in enumerate(self.extent)]), [0 for i in self.intent])
     tops = find_children([], top, 0, self, False, verbose=verbose)
     contexts = self.make_hasse(tops, verbose=verbose)
     return contexts