MCPcopy Create free account

hub / github.com/Adam-Vandervorst/PyBHV / functions

Functions786 in github.com/Adam-Vandervorst/PyBHV

↓ 4 callersMethodmutual_information
(self, other: Self, distance=False)
bhv/abstract.py:271
↓ 4 callersFunctionnext_state
(state, input)
examples/state_machine.py:27
↓ 4 callersMethodpreorder
(self, p=lambda x: True)
bhv/symbolic.py:184
↓ 4 callersMethodrandom
(cls, active: float)
bhv/abstract.py:544
↓ 4 callersMethodrandom
(cls)
bhv/abstract.py:717
↓ 4 callersMethodrehash
(self)
bhv/slice.py:27
↓ 4 callersMethodrepack8
(self)
bhv/np.py:424
↓ 4 callersMethodshred
(self, **kwargs)
bhv/symbolic.py:178
↓ 4 callersFunctionsmallest_power2_larger
(x)
tests/representative_equivalent.py:12
↓ 4 callersFunctionstep
(hv: BHV)
examples/gol.py:115
↓ 4 callersMethodvars
(self)
bhv/symbolic.py:28
↓ 3 callersFunctionL
(vs)
tests/representative_equivalent.py:8
↓ 3 callersMethod_ite_window
(cls, vs: list[Self], b: int, t: int)
bhv/abstract.py:643
↓ 3 callersMethodcheck_rv_input
Assert that the input values ``number_successes`` are OK. The input values ``number_successes`` for the random variable have to be in
bhv/poibin.py:244
↓ 3 callersMethodclosest
(self, vs: list[Self])
bhv/abstract.py:92
↓ 3 callersFunctioncomplement
(m, f, z)
tests/sym_laws.py:32
↓ 3 callersFunctioncomplement
(m, f, z)
tests/laws.py:48
↓ 3 callersFunctionembed
(im)
examples/embed_image.py:50
↓ 3 callersMethodexpected_error
Gives expected bit error rate between an expression that contains only representative operators and random hypervectors, and a given
bhv/symbolic.py:650
↓ 3 callersFunctionextensionality
(f, g)
tests/laws.py:32
↓ 3 callersFunctionformat_list
(xs, **kwargs)
bhv/shared.py:115
↓ 3 callersFunctionformat_multiple
(xs, start="", sep="", end="", indent="", aindent="", newline_threshold=40)
bhv/shared.py:106
↓ 3 callersFunctiongrid_to_viz
(g: list[list[bool]])
examples/gol.py:101
↓ 3 callersFunctionhv_to_grid
(hv: BHV)
examples/gol.py:109
↓ 3 callersMethodinvert
(self, x: 'HV', one: 'HV.ONE', zero: 'HV.ZERO')
bhv/variants.py:78
↓ 3 callersMethodlevel
(cls, active_fraction: float)
bhv/np.py:94
↓ 3 callersMethodnormal
(mean=0., af=.5)
bhv/abstract.py:147
↓ 3 callersMethodoptimal_sharing
Merge branches that are the same. Commutativity is not taken into account.
bhv/symbolic.py:122
↓ 3 callersFunctionpropagate2
(f, m)
tests/laws.py:27
↓ 3 callersMethodrepack64
(self)
bhv/np.py:273
↓ 3 callersMethodrepresentative
(cls, vs: list['NumPyBoolBHV'])
bhv/np.py:117
↓ 3 callersMethodselect_rand2
(self, other: Self, power_left: int)
bhv/abstract.py:231
↓ 3 callersMethodshortname
(cls, i: int, letters=ascii_uppercase)
bhv/symbolic.py:482
↓ 3 callersMethodswap_even_odd
(self)
bhv/abstract.py:569
↓ 3 callersFunctiontest
(gen, on)
tests/representative_equivalent.py:233
↓ 3 callersMethodthreshold
(cls, vs: list['NumPyBoolBHV'], t: int)
bhv/np.py:67
↓ 3 callersFunctiontransport2
(law, l, r)
tests/laws.py:51
↓ 3 callersFunctionunify
(t1: Symbolic, t2: Symbolic, knowledge: Optional[Knowledge] = None)
bhv/unification.py:8
↓ 3 callersMethodwithin_std
(self, vs: list[Self], d: float, relative: bool = False)
bhv/abstract.py:101
↓ 2 callersMethod_get_singular
(cls, permutation_id: int)
bhv/abstract.py:742
↓ 2 callersMethod_logic_representative
(cls, vs: list[Self])
bhv/abstract.py:333
↓ 2 callersMethod_logic_threshold
(cls, vs: list[Self], t: int)
bhv/abstract.py:609
↓ 2 callersMethod_majority5_via_3
(cls, a: Self, b: Self, c: Self, d: Self, e: Self)
bhv/abstract.py:177
↓ 2 callersMethod_majority7_via_3
(cls, a: Self, b: Self, c: Self, d: Self, e: Self, f: Self, g: Self)
bhv/abstract.py:181
↓ 2 callersMethod_majority9_via_3
(cls, a: Self, b: Self, c: Self, d: Self, e: Self, f: Self, g: Self, h: Self, i: Self)
bhv/abstract.py:187
↓ 2 callersFunctionabsorptive
(m, w)
tests/sym_laws.py:28
↓ 2 callersFunctionabsorptive
(m, w)
tests/laws.py:21
↓ 2 callersFunctionangle_to_index
(a)
examples/pdm.py:12
↓ 2 callersFunctionassume2
(law, p)
tests/laws.py:53
↓ 2 callersFunctionassume3
(law, p)
tests/laws.py:54
↓ 2 callersMethodbest_division_window_bounds
(n: int, f: float = .5, af=.5)
bhv/abstract.py:693
↓ 2 callersFunctionbhv_conv_metrics
(under)
tests/laws.py:153
↓ 2 callersFunctionbitconfigs
(n)
tests/lsynthesis.py:8
↓ 2 callersFunctionbounded_lattice
(join, top, bot)
tests/sym_laws.py:57
↓ 2 callersFunctionbounded_lattice
(join, top, bot)
tests/laws.py:57
↓ 2 callersMethodconstant
(self)
bhv/symbolic.py:51
↓ 2 callersFunctiondecode_person
(hv: BHV)
examples/records.py:44
↓ 2 callersFunctiondemorgan
(f, m, w)
tests/sym_laws.py:30
↓ 2 callersFunctiondemorgan
(f, m, w)
tests/laws.py:24
↓ 2 callersMethoddraw_children
(self, **kwargs)
bhv/symbolic.py:61
↓ 2 callersMethoddraw_edges
(self, **kwargs)
bhv/symbolic.py:57
↓ 2 callersMethoddraw_node
(self, **kwargs)
bhv/symbolic.py:54
↓ 2 callersFunctionencode_decode
(enc, dec)
tests/laws.py:41
↓ 2 callersFunctionencode_person
(p: Person)
examples/records.py:29
↓ 2 callersFunctionequals
(f, a, b)
tests/sym_laws.py:25
↓ 2 callersFunctionequals
(f, a, b)
tests/laws.py:18
↓ 2 callersFunctionextensionality5
(f, g)
tests/laws.py:36
↓ 2 callersMethodfeistal
(self, k: Self, inv=False)
bhv/abstract.py:585
↓ 2 callersMethodfix
Calculates and returns the fix-point of operator `f` on self. Recursively applies until no change was made. If `f` returns No
bhv/symbolic.py:155
↓ 2 callersMethodfrom_bitstring
(cls, s: str)
bhv/np.py:167
↓ 2 callersMethodfrom_bytes
(cls, bs: bytes)
bhv/abstract.py:19
↓ 2 callersMethodfrom_scope
(cls, local_dict)
bhv/visualization.py:6
↓ 2 callersFunctiongreedy
(initial, iters=100)
tests/sym_laws.py:161
↓ 2 callersFunctionidempotent
(m)
tests/sym_laws.py:22
↓ 2 callersFunctionidempotent
(m)
tests/laws.py:15
↓ 2 callersFunctioninvariant_under
(f, p)
tests/laws.py:42
↓ 2 callersMethodload_pbm
(cls, file: 'IO[Any]', bhv: 'AbstractBHV', binary=False)
bhv/visualization.py:26
↓ 2 callersMethodmajority
(cls, vs: list[Self])
bhv/abstract.py:60
↓ 2 callersMethodpermute_bits
(self, permutation: TorchBoolPermutation)
bhv/pytorch.py:87
↓ 2 callersMethodpermute_bits
(self, permutation: 'NumPyBoolPermutation')
bhv/np.py:60
↓ 2 callersMethodpermute_bytes
(self, permutation: 'NumPyBytePermutation')
bhv/np.py:223
↓ 2 callersMethodpermute_bytes
(self, permutation: 'VanillaPermutation')
bhv/vanilla.py:65
↓ 2 callersMethodpermute_words
(self, permutation: TorchWordPermutation)
bhv/pytorch.py:176
↓ 2 callersMethodpermute_words
(self, permutation: 'NumPyWordPermutation')
bhv/np.py:393
↓ 2 callersFunctionpropagate3
(f, m)
tests/laws.py:28
↓ 2 callersMethodrand
(cls)
bhv/pytorch.py:61
↓ 2 callersMethodrand
(cls)
bhv/np.py:36
↓ 2 callersMethodrand2
(cls, power: int)
bhv/symbolic.py:399
↓ 2 callersMethodrandom
(cls, active: float)
bhv/symbolic.py:404
↓ 2 callersMethodrandom
(cls, active: float)
bhv/np.py:40
↓ 2 callersFunctionrec
(p, pn, depth)
tests/representative_equivalent.py:59
↓ 2 callersMethodreconstruct
(self, l, r)
bhv/symbolic.py:741
↓ 2 callersMethodroll_bits
(self, n: int)
bhv/pytorch.py:84
↓ 2 callersMethodroll_bits
(self, n: int)
bhv/vanilla.py:57
↓ 2 callersFunctionsearch
(e)
tests/sym_laws.py:132
↓ 2 callersMethodselect
(self, when1: Self, when0: Self)
bhv/symbolic.py:433
↓ 2 callersFunctionself_inverse
(m, u)
tests/sym_laws.py:23
↓ 2 callersFunctionself_inverse
(m, u)
tests/laws.py:16
↓ 2 callersMethodshow_program
(self, name="f", indent=" ", **kwargs)
bhv/symbolic.py:77
↓ 2 callersMethodspawn
(self, one: 'HV.ONE', zero: 'HV.ZERO')
bhv/variants.py:13
← previousnext →101–200 of 786, ranked by callers