MCPcopy
hub / github.com/dask/dask / reduce_state

Function reduce_state

dask/dataframe/hyperloglog.py:55–61  ·  view source on GitHub ↗
(Ms, b)

Source from the content-addressed store, hash-verified

53
54
55def reduce_state(Ms, b):
56 m = 1 << b
57
58 # We concatenated all of the states, now we need to get the max
59 # value for each j in both
60 Ms = Ms.reshape((len(Ms) // m), m)
61 return Ms.max(axis=0)
62
63
64def estimate_count(Ms, b):

Callers 1

estimate_countFunction · 0.85

Calls 2

reshapeMethod · 0.80
maxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…