FormulaIDInfo

class hybrid_learning.experimentation.fuzzy_exp.fuzzy_exp_helpers.FormulaIDInfo(obj, spec, pretty_spec, id, hash, dir)[source]

Bases: tuple

Public Data Attributes:

obj

The (parsed) formula object.

spec

The string specification of the formula object.

pretty_spec

The pretty string specification of the formula object.

id

A unique ID for the formula object taking into account the formula spec, logic, and constants.

hash

The hash of the id.

dir

A unique experiment directory path based on the id and its hash.

Public Methods:

Inherited from : py: class:tuple

index(value[, start, stop])

Return first index of value.

count(value, /)

Return number of occurrences of value.

Special Methods:

__repr__()

Return a nicely formatted representation string

__getnewargs__()

Return self as a plain tuple.

Inherited from : py: class:tuple

__repr__()

Return a nicely formatted representation string

__hash__()

Return hash(self).

__getattribute__(name, /)

Return getattr(self, name).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__iter__()

Implement iter(self).

__len__()

Return len(self).

__getitem__(key, /)

Return self[key].

__add__(value, /)

Return self+value.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__contains__(key, /)

Return key in self.

__new__(_cls, obj, spec, pretty_spec, id, ...)

Create new instance of FormulaIDInfo(obj, spec, pretty_spec, id, hash, dir)

__getnewargs__()

Return self as a plain tuple.


Parameters
__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__repr__()

Return a nicely formatted representation string

__slots__ = ()
dir: str

A unique experiment directory path based on the id and its hash.

hash: str

The hash of the id.

id: str

A unique ID for the formula object taking into account the formula spec, logic, and constants.

obj: Merge

The (parsed) formula object.

pretty_spec: str

The pretty string specification of the formula object.

spec: str

The string specification of the formula object.