Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Adam-Vandervorst/PyBHV
/ functions
Functions
786 in github.com/Adam-Vandervorst/PyBHV
⨍
Functions
786
◇
Types & classes
81
↓ 62 callers
Method
rand
(cls)
bhv/slice.py:13
↓ 51 callers
Method
get
(cls, permutation_id: 'int | tuple[int, ...]')
bhv/abstract.py:769
↓ 40 callers
Method
nrand
(cls, n: int)
bhv/abstract.py:56
↓ 40 callers
Method
show
(self, toplevel=True, **kwargs)
bhv/symbolic.py:744
↓ 39 callers
Method
majority
(cls, vs: list['NumPyBoolBHV'])
bhv/np.py:88
↓ 38 callers
Method
select
(self, when1: Self, when0: Self)
bhv/abstract.py:225
↓ 37 callers
Method
bit_error_rate
(self, other: Self)
bhv/abstract.py:112
↓ 32 callers
Method
execute
(self, random: 'dict[int, AbstractBHV]' = None, rand2: 'dict[int, AbstractBHV]' = None,
bhv/symbolic.py:104
↓ 32 callers
Method
std_apart
(self, other: Self, relative=False)
bhv/abstract.py:117
↓ 32 callers
Method
window
(cls, vs: list[Self], b: int, t: int)
bhv/abstract.py:633
↓ 29 callers
Method
majority3
(cls, x, y, z)
bhv/abstract.py:64
↓ 29 callers
Method
related
(self, other: Self, stdvs=6)
bhv/abstract.py:173
↓ 26 callers
Method
add
(self, item)
bhv/shared.py:126
↓ 24 callers
Function
BHV_new
bhv/bindings.cpp:16
↓ 24 callers
Method
hamming
(self, other: Self)
bhv/abstract.py:89
↓ 20 callers
Method
agreement
(cls, vs: list[Self], p: float)
bhv/abstract.py:681
↓ 20 callers
Method
permute
(self, permutation_id: int)
bhv/slice.py:21
↓ 19 callers
Method
named
(self, name)
bhv/symbolic.py:12
↓ 19 callers
Method
select
(self, when1: 'TorchBoolBHV', when0: 'TorchBoolBHV')
bhv/pytorch.py:69
↓ 18 callers
Method
from_bytes
(cls, bs)
bhv/np.py:151
↓ 18 callers
Method
xor
(self, x: HV, y: HV)
bhv/variants.py:21
↓ 18 callers
Method
zscore
(self)
bhv/abstract.py:166
↓ 17 callers
Method
active
(self)
bhv/slice.py:49
↓ 17 callers
Method
simplify
(self, **kwargs)
bhv/symbolic.py:172
↓ 17 callers
Method
to_bytes
(self)
bhv/np.py:147
↓ 16 callers
Function
rec
(args, depth)
tests/laws.py:179
↓ 15 callers
Method
rand
(cls)
bhv/abstract.py:52
↓ 15 callers
Method
random
(cls, active: float)
bhv/slice.py:17
↓ 14 callers
Method
expected_active_fraction
(self, **kwargs)
bhv/symbolic.py:867
↓ 13 callers
Method
distribute
(self, **kwargs)
bhv/symbolic.py:789
↓ 13 callers
Method
expected_errors
(self, active_fractions=None)
bhv/symbolic.py:675
↓ 13 callers
Method
reduce
(self, **kwargs)
bhv/symbolic.py:851
↓ 13 callers
Method
roll_words
(self, n: int)
bhv/np.py:360
↓ 13 callers
Method
size
(self, counted=None, recount=False, **kwargs)
bhv/symbolic.py:143
↓ 13 callers
Method
to_int
(self)
bhv/vanilla.py:93
↓ 12 callers
Method
roll_word_bits
(self, n: int)
bhv/np.py:364
↓ 12 callers
Method
unpack
(self)
bhv/np.py:270
↓ 11 callers
Method
flip_frac_on
(self, frac_flip_on: float)
bhv/abstract.py:561
↓ 11 callers
Method
synth
(cls, vs, t)
bhv/symbolic.py:339
↓ 11 callers
Function
tos
(i, b)
tests/lsynthesis.py:5
↓ 10 callers
Method
children
(self, **kwargs)
bhv/symbolic.py:25
↓ 10 callers
Method
cosine
(self, other: Self, distance=False)
bhv/abstract.py:263
↓ 10 callers
Method
jaccard
(self, other: Self, distance=False)
bhv/abstract.py:256
↓ 10 callers
Method
map
(self, f)
bhv/symbolic.py:48
↓ 9 callers
Method
forward
(self, x: T)
bhv/embedding.py:22
↓ 9 callers
Method
nrand2
(cls, n: int, power: int)
bhv/abstract.py:221
↓ 9 callers
Function
stable_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 callers
Method
swap_even_odd
(self)
bhv/np.py:50
↓ 9 callers
Method
update
(self, amount: float)
bhv/variants.py:99
↓ 8 callers
Method
active
(self)
bhv/abstract.py:80
↓ 8 callers
Method
back
(self, input_hv: AbstractBHV, threshold=6)
bhv/embedding.py:30
↓ 8 callers
Method
flip_frac_off
(self, frac_flip_off: float)
bhv/abstract.py:564
↓ 8 callers
Function
invariant_under2
(f, p)
tests/laws.py:43
↓ 8 callers
Method
vs
(on, off)
tests/threshold.py:9
↓ 8 callers
Method
vs
(on, off)
tests/window.py:9
↓ 7 callers
Method
active_fraction
(self)
bhv/abstract.py:86
↓ 7 callers
Method
from_int
(cls, i: int)
bhv/vanilla.py:97
↓ 7 callers
Method
graphviz
(self, structural=False, done=None, **kwargs)
bhv/symbolic.py:208
↓ 7 callers
Method
overlap
(self, other: Self, distance=False)
bhv/abstract.py:252
↓ 7 callers
Function
pad_grid
(g: list[list[bool]])
examples/gol.py:91
↓ 7 callers
Method
roll_bits
(self, n: int)
bhv/np.py:57
↓ 7 callers
Method
select_random
(self, other: Self, frac_left: float)
bhv/abstract.py:552
↓ 7 callers
Function
viz_to_grid
(v: list[str])
examples/gol.py:87
↓ 6 callers
Function
apply_rel
(rel, x, y)
examples/grandmother_example.py:16
↓ 6 callers
Function
associative
(m)
tests/sym_laws.py:20
↓ 6 callers
Function
associative
(m)
tests/laws.py:11
↓ 6 callers
Function
commutative
(m)
tests/sym_laws.py:21
↓ 6 callers
Function
commutative
(m)
tests/laws.py:13
↓ 6 callers
Method
distribution
(self, vs: list[Self], metric=lambda x, y: x.std_apart(y), softmax: bool = False, base: int = e)
bhv/abstract.py:104
↓ 6 callers
Function
distributive
(m, w)
tests/sym_laws.py:29
↓ 6 callers
Function
distributive
(m, w)
tests/laws.py:22
↓ 6 callers
Method
frac_to_std
(frac, relative=False)
bhv/abstract.py:155
↓ 6 callers
Function
interval
(p)
tests/representative_equivalent.py:24
↓ 6 callers
Function
length
(lu)
tests/representative_equivalent.py:29
↓ 6 callers
Method
pack
(self)
bhv/pytorch.py:122
↓ 6 callers
Method
pack64
(self)
bhv/np.py:144
↓ 6 callers
Method
pack8
(self)
bhv/np.py:141
↓ 6 callers
Function
right_unit
(m, u)
tests/sym_laws.py:26
↓ 6 callers
Function
right_unit
(m, u)
tests/laws.py:19
↓ 6 callers
Function
run_for
(impl: AbstractBHV, ts)
tests/laws.py:168
↓ 6 callers
Method
std_to_frac
(std, relative=False)
bhv/abstract.py:161
↓ 6 callers
Function
tomask
(s)
tests/lsynthesis.py:6
↓ 5 callers
Function
closest
(noisy)
examples/state_machine.py:32
↓ 5 callers
Method
flip_frac
(self, frac_flip: float)
bhv/abstract.py:558
↓ 5 callers
Method
from_bitstream
(cls, bits_s: 'Iterator[bool]')
bhv/np.py:162
↓ 5 callers
Function
grid_to_hv
(g: list[list[bool]])
examples/gol.py:105
↓ 5 callers
Method
nodeid
(self, structural=False, **kwargs)
bhv/symbolic.py:19
↓ 5 callers
Method
nodename
(self, **kwards)
bhv/symbolic.py:486
↓ 5 callers
Method
pbm
(self, file: 'IO[Any]', binary=False)
bhv/visualization.py:45
↓ 5 callers
Method
rand2
(cls, power: int)
bhv/abstract.py:215
↓ 5 callers
Method
select_rand
(self, other: Self)
bhv/abstract.py:228
↓ 5 callers
Method
threshold
(cls, vs: list[Self], t: int)
bhv/slice.py:53
↓ 5 callers
Method
truth_assignments
(self, vars)
bhv/symbolic.py:187
↓ 4 callers
Method
_majority_via_unpacked
(cls, vs: list['NumPyPacked64BHV'])
bhv/np.py:339
↓ 4 callers
Method
bits
(self)
bhv/np.py:154
↓ 4 callers
Method
bitstring
(self)
bhv/np.py:157
↓ 4 callers
Method
cdf
Calculate the cumulative distribution function for the input values. The cumulative distribution function ``cdf`` for a number ``k`` of
bhv/poibin.py:118
↓ 4 callers
Method
flip_pow
(self, pow_flip: int)
bhv/abstract.py:243
↓ 4 callers
Function
identity
(f)
tests/laws.py:44
↓ 4 callers
Method
labeled_children
(self, **kwargs)
bhv/symbolic.py:22
next →
1–100 of 786, ranked by callers