MergeBuilder
- class hybrid_learning.fuzzy_logic.logic_base.merge_operation.MergeBuilder(merge_class, symb=None, additional_args=None)[source]
Bases:
object
Return a
Merge
operation of specified class with additional settings upon call. Common additional init arguments can be specified and a newSYMB
, overwriting theMerge.SYMB
(or attaching aSYMB
attribute to another builder). Attribute access is passed over to themerge_class
specified. For easy instantiation see alsoMerge.with_()
.Public Data Attributes:
The additional arguments to and over to the
Merge
class on each call.Public Methods:
symb_
(symb)Set SYMB and return self.
with_
(**additional_args)Update the additional arguments.
variadic_
(*args, **kwargs)Return a variadic instance of the wrapped
merge_class
.Special Methods:
__init__
(merge_class[, symb, additional_args])__call__
(*args, **kwargs)Build an instance of the specified Merge class with the additional args.
__getattr__
(k)Pass attribute requests over to Merge class.
__repr__
()Return repr(self).
- Parameters
- __call__(*args, **kwargs)[source]
Build an instance of the specified Merge class with the additional args. The given
kwargs
will overwrite arguments fromadditional_args
.- Return type
- symb_(symb)[source]
Set SYMB and return self. Can be used in chain assignments.
- Parameters
symb (str) –
- Return type
- variadic_(*args, **kwargs)[source]
Return a variadic instance of the wrapped
merge_class
. Calls thevariadic_
function ofmerge_class
.- Return type