Beispiel #1
0
def main():
    length = 10
    concept = Conjunction(length)
    function = concept.get_ideal_function()
    distribution = UniformDistribution(concept, length)

    pac_oracle = PAC_Oracle(concept, distribution)
    pac_alg = PAC_Algorithm(pac_oracle, length)

    hypo = pac_alg.learn_ideal_function(0.5, 0.1)

    print "FUNC IS: " + str(function)
    print "HYPO IS: " + str(hypo)
 def rewrite(self):
     return Conjunction(lhs=Implication(lhs=self.lhs, rhs=self.rhs),
                        rhs=Implication(lhs=self.rhs, rhs=self.lhs))
Beispiel #3
0
 def setUp(self):
     self.conjunction = Conjunction(6)