estimator.cost.Cost.combine
estimator.cost.Cost.combine#
- Cost.combine(right, base=None)[source]#
Combine
left
andright
.- Parameters
left – cost dictionary
right – cost dictionary
base – add entries to
base
EXAMPLE:
>>> from estimator.cost import Cost >>> c0 = Cost(a=1) >>> c1 = Cost(b=2) >>> c2 = Cost(c=3) >>> c0.combine(c1) a: 1, b: 2 >>> c0.combine(c1, base=c2) c: 3, a: 1, b: 2