MCPcopy Create free account
hub / github.com/modAL-python/modAL / linear_combination

Function linear_combination

modAL/utils/combination.py:31–32  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

29 'same as the number of given functions'
30
31 def linear_combination(*args, **kwargs):
32 return sum((weights[i]*functions[i](*args, **kwargs) for i in range(len(weights))))
33
34 return linear_combination
35

Callers 4

custom_query_strategyFunction · 0.85
custom_query_strategyFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…