MCPcopy Create free account

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

Functions786 in github.com/Adam-Vandervorst/PyBHV

↓ 62 callersMethodrand
(cls)
bhv/slice.py:13
↓ 51 callersMethodget
(cls, permutation_id: 'int | tuple[int, ...]')
bhv/abstract.py:769
↓ 40 callersMethodnrand
(cls, n: int)
bhv/abstract.py:56
↓ 40 callersMethodshow
(self, toplevel=True, **kwargs)
bhv/symbolic.py:744
↓ 39 callersMethodmajority
(cls, vs: list['NumPyBoolBHV'])
bhv/np.py:88
↓ 38 callersMethodselect
(self, when1: Self, when0: Self)
bhv/abstract.py:225
↓ 37 callersMethodbit_error_rate
(self, other: Self)
bhv/abstract.py:112
↓ 32 callersMethodexecute
(self, random: 'dict[int, AbstractBHV]' = None, rand2: 'dict[int, AbstractBHV]' = None,
bhv/symbolic.py:104
↓ 32 callersMethodstd_apart
(self, other: Self, relative=False)
bhv/abstract.py:117
↓ 32 callersMethodwindow
(cls, vs: list[Self], b: int, t: int)
bhv/abstract.py:633
↓ 29 callersMethodmajority3
(cls, x, y, z)
bhv/abstract.py:64
↓ 29 callersMethodrelated
(self, other: Self, stdvs=6)
bhv/abstract.py:173
↓ 26 callersMethodadd
(self, item)
bhv/shared.py:126
↓ 24 callersFunctionBHV_new
bhv/bindings.cpp:16
↓ 24 callersMethodhamming
(self, other: Self)
bhv/abstract.py:89
↓ 20 callersMethodagreement
(cls, vs: list[Self], p: float)
bhv/abstract.py:681
↓ 20 callersMethodpermute
(self, permutation_id: int)
bhv/slice.py:21
↓ 19 callersMethodnamed
(self, name)
bhv/symbolic.py:12
↓ 19 callersMethodselect
(self, when1: 'TorchBoolBHV', when0: 'TorchBoolBHV')
bhv/pytorch.py:69
↓ 18 callersMethodfrom_bytes
(cls, bs)
bhv/np.py:151
↓ 18 callersMethodxor
(self, x: HV, y: HV)
bhv/variants.py:21
↓ 18 callersMethodzscore
(self)
bhv/abstract.py:166
↓ 17 callersMethodactive
(self)
bhv/slice.py:49
↓ 17 callersMethodsimplify
(self, **kwargs)
bhv/symbolic.py:172
↓ 17 callersMethodto_bytes
(self)
bhv/np.py:147
↓ 16 callersFunctionrec
(args, depth)
tests/laws.py:179
↓ 15 callersMethodrand
(cls)
bhv/abstract.py:52
↓ 15 callersMethodrandom
(cls, active: float)
bhv/slice.py:17
↓ 14 callersMethodexpected_active_fraction
(self, **kwargs)
bhv/symbolic.py:867
↓ 13 callersMethoddistribute
(self, **kwargs)
bhv/symbolic.py:789
↓ 13 callersMethodexpected_errors
(self, active_fractions=None)
bhv/symbolic.py:675
↓ 13 callersMethodreduce
(self, **kwargs)
bhv/symbolic.py:851
↓ 13 callersMethodroll_words
(self, n: int)
bhv/np.py:360
↓ 13 callersMethodsize
(self, counted=None, recount=False, **kwargs)
bhv/symbolic.py:143
↓ 13 callersMethodto_int
(self)
bhv/vanilla.py:93
↓ 12 callersMethodroll_word_bits
(self, n: int)
bhv/np.py:364
↓ 12 callersMethodunpack
(self)
bhv/np.py:270
↓ 11 callersMethodflip_frac_on
(self, frac_flip_on: float)
bhv/abstract.py:561
↓ 11 callersMethodsynth
(cls, vs, t)
bhv/symbolic.py:339
↓ 11 callersFunctiontos
(i, b)
tests/lsynthesis.py:5
↓ 10 callersMethodchildren
(self, **kwargs)
bhv/symbolic.py:25
↓ 10 callersMethodcosine
(self, other: Self, distance=False)
bhv/abstract.py:263
↓ 10 callersMethodjaccard
(self, other: Self, distance=False)
bhv/abstract.py:256
↓ 10 callersMethodmap
(self, f)
bhv/symbolic.py:48
↓ 9 callersMethodforward
(self, x: T)
bhv/embedding.py:22
↓ 9 callersMethodnrand2
(cls, n: int, power: int)
bhv/abstract.py:221
↓ 9 callersFunctionstable_hashcode
A thin wrapper around `stable_hash` which returns a string and incorporates a version. :param d: Something you want to hash :param versio
bhv/shared.py:65
↓ 9 callersMethodswap_even_odd
(self)
bhv/np.py:50
↓ 9 callersMethodupdate
(self, amount: float)
bhv/variants.py:99
↓ 8 callersMethodactive
(self)
bhv/abstract.py:80
↓ 8 callersMethodback
(self, input_hv: AbstractBHV, threshold=6)
bhv/embedding.py:30
↓ 8 callersMethodflip_frac_off
(self, frac_flip_off: float)
bhv/abstract.py:564
↓ 8 callersFunctioninvariant_under2
(f, p)
tests/laws.py:43
↓ 8 callersMethodvs
(on, off)
tests/threshold.py:9
↓ 8 callersMethodvs
(on, off)
tests/window.py:9
↓ 7 callersMethodactive_fraction
(self)
bhv/abstract.py:86
↓ 7 callersMethodfrom_int
(cls, i: int)
bhv/vanilla.py:97
↓ 7 callersMethodgraphviz
(self, structural=False, done=None, **kwargs)
bhv/symbolic.py:208
↓ 7 callersMethodoverlap
(self, other: Self, distance=False)
bhv/abstract.py:252
↓ 7 callersFunctionpad_grid
(g: list[list[bool]])
examples/gol.py:91
↓ 7 callersMethodroll_bits
(self, n: int)
bhv/np.py:57
↓ 7 callersMethodselect_random
(self, other: Self, frac_left: float)
bhv/abstract.py:552
↓ 7 callersFunctionviz_to_grid
(v: list[str])
examples/gol.py:87
↓ 6 callersFunctionapply_rel
(rel, x, y)
examples/grandmother_example.py:16
↓ 6 callersFunctionassociative
(m)
tests/sym_laws.py:20
↓ 6 callersFunctionassociative
(m)
tests/laws.py:11
↓ 6 callersFunctioncommutative
(m)
tests/sym_laws.py:21
↓ 6 callersFunctioncommutative
(m)
tests/laws.py:13
↓ 6 callersMethoddistribution
(self, vs: list[Self], metric=lambda x, y: x.std_apart(y), softmax: bool = False, base: int = e)
bhv/abstract.py:104
↓ 6 callersFunctiondistributive
(m, w)
tests/sym_laws.py:29
↓ 6 callersFunctiondistributive
(m, w)
tests/laws.py:22
↓ 6 callersMethodfrac_to_std
(frac, relative=False)
bhv/abstract.py:155
↓ 6 callersFunctioninterval
(p)
tests/representative_equivalent.py:24
↓ 6 callersFunctionlength
(lu)
tests/representative_equivalent.py:29
↓ 6 callersMethodpack
(self)
bhv/pytorch.py:122
↓ 6 callersMethodpack64
(self)
bhv/np.py:144
↓ 6 callersMethodpack8
(self)
bhv/np.py:141
↓ 6 callersFunctionright_unit
(m, u)
tests/sym_laws.py:26
↓ 6 callersFunctionright_unit
(m, u)
tests/laws.py:19
↓ 6 callersFunctionrun_for
(impl: AbstractBHV, ts)
tests/laws.py:168
↓ 6 callersMethodstd_to_frac
(std, relative=False)
bhv/abstract.py:161
↓ 6 callersFunctiontomask
(s)
tests/lsynthesis.py:6
↓ 5 callersFunctionclosest
(noisy)
examples/state_machine.py:32
↓ 5 callersMethodflip_frac
(self, frac_flip: float)
bhv/abstract.py:558
↓ 5 callersMethodfrom_bitstream
(cls, bits_s: 'Iterator[bool]')
bhv/np.py:162
↓ 5 callersFunctiongrid_to_hv
(g: list[list[bool]])
examples/gol.py:105
↓ 5 callersMethodnodeid
(self, structural=False, **kwargs)
bhv/symbolic.py:19
↓ 5 callersMethodnodename
(self, **kwards)
bhv/symbolic.py:486
↓ 5 callersMethodpbm
(self, file: 'IO[Any]', binary=False)
bhv/visualization.py:45
↓ 5 callersMethodrand2
(cls, power: int)
bhv/abstract.py:215
↓ 5 callersMethodselect_rand
(self, other: Self)
bhv/abstract.py:228
↓ 5 callersMethodthreshold
(cls, vs: list[Self], t: int)
bhv/slice.py:53
↓ 5 callersMethodtruth_assignments
(self, vars)
bhv/symbolic.py:187
↓ 4 callersMethod_majority_via_unpacked
(cls, vs: list['NumPyPacked64BHV'])
bhv/np.py:339
↓ 4 callersMethodbits
(self)
bhv/np.py:154
↓ 4 callersMethodbitstring
(self)
bhv/np.py:157
↓ 4 callersMethodcdf
Calculate the cumulative distribution function for the input values. The cumulative distribution function ``cdf`` for a number ``k`` of
bhv/poibin.py:118
↓ 4 callersMethodflip_pow
(self, pow_flip: int)
bhv/abstract.py:243
↓ 4 callersFunctionidentity
(f)
tests/laws.py:44
↓ 4 callersMethodlabeled_children
(self, **kwargs)
bhv/symbolic.py:22
next →1–100 of 786, ranked by callers