test Package

test Package

infpy.decision.test.suite()[source]

decision_test Module

class infpy.decision.test.decision_test.DecisionTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test case for decision trees

genepy_test Module

class infpy.decision.test.genepy_test.GenepyTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test case for decision tree genepy interface

context = <infpy.decision.rule_generation.Context object at 0x3bfd450>
data = [((9, 0, 0.4026995877251494), 0), ((9, 0, -0.2500274497472594), 2), ((2, 1, -1.9312266098971669), 0), ((3, 2, 1.1313844754737032), 0), ((7, 0, 0.8571405313809379), 0), ((9, 0, 1.9129928866598684), 1), ((1, 1, 0.30704215789585393), 1), ((7, 1, 0.42653850621715056), 1), ((5, 0, 0.5530318559445685), 0), ((4, 3, -0.7673662731793783), 2), ((2, 0, 0.809698334321839), 1), ((4, 2, 1.5344914311203512), 1), ((8, 0, -0.4445013430837382), 1), ((1, 1, 1.084520156983739), 1), ((7, 2, 0.9907039388390552), 1), ((7, 0, 1.047262284314941), 2), ((6, 3, 1.0741115837938549), 0), ((5, 2, 1.5466646943154176), 0), ((3, 3, 0.6988736897110123), 0), ((6, 0, -0.6993114400415833), 2), ((4, 1, 0.8018638904956482), 1), ((6, 2, -0.6416469251686132), 1), ((4, 3, 1.516452164395157), 2), ((6, 3, -0.23931758799336716), 0), ((5, 0, -0.6158359682224983), 2), ((8, 3, 1.6035171094936116), 0), ((2, 0, 0.6186613607858235), 0), ((2, 0, 0.46706605216012675), 1), ((7, 0, 0.4331401712919509), 2), ((3, 2, -0.6795463031124471), 1)]
fitness_fn(individual)[source]
classmethod gauss(mu, sigma)

Gaussian distribution.

mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function.

Not thread-safe without a lock around calls.

i = 29
classmethod randint(a, b)

Return random integer in range [a, b], including both end points.

species = <infpy.decision.genepy_interface.DecisionTreeSpecies object at 0x3c62150>
test_call()[source]
test_combination()[source]
test_initialisation()[source]
test_mutation()[source]
test_overall()[source]
infpy.decision.test.genepy_test.cont(data)[source]
infpy.decision.test.genepy_test.enum(data)[source]
infpy.decision.test.genepy_test.ord(data)[source]

rule_test Module

class infpy.decision.test.rule_test.RuleTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test case for decision tree rule generation

test_rule_generation()[source]

Test decision tree rule generation.

Table Of Contents

Previous topic

decision Package

Next topic

dp Package

This Page