hashtron.classifier package

Submodules

hashtron.classifier.constructor module

class hashtron.classifier.constructor.Hashtron(program=None, bits=1)[source]

Bases: object

static new(program=None, bits=1)[source]

hashtron.classifier.forward module

class hashtron.classifier.forward.HashtronForward(hashtron)[source]

Bases: object

forward(sample: int, negate: bool) int[source]

hashtron.classifier.model module

class hashtron.classifier.model.HashtronModel(program=None, bits=1)[source]

Bases: object

bits() int[source]
get(n: int) tuple[int, int][source]
len() int[source]
set_bits(bits: int)[source]

hashtron.classifier.test_forward module

class hashtron.classifier.test_forward.TestHashtronForward(methodName='runTest')[source]

Bases: TestCase

test_forward()[source]

hashtron.classifier.test_view module

class hashtron.classifier.test_view.TestHashtronSerialize(methodName='runTest')[source]

Bases: TestCase

test_serialize()[source]

hashtron.classifier.view module

class hashtron.classifier.view.HashtronView(hashtron)[source]

Bases: object

read_json(b) None[source]
write_json() str[source]

Module contents