gaia.core.integrated_structures module
GAIA Integrated Structures
This module integrates fuzzy sets, simplicial sets, and coalgebras into a unified system following the abstractions defined in abstractions.py.
Combines functionality from: - fuzzy.py (fuzzy sets and membership functions) - simplices.py (simplicial structures) - coalgebras.py (F-coalgebras and endofunctors) - functor.py (simplicial functors)
- class gaia.core.integrated_structures.TConorm(value)[source]
Bases:
Enum
T-conorms for fuzzy set operations.
- MAXIMUM = 'maximum'
- PROBABILISTIC = 'probabilistic'
- LUKASIEWICZ = 'lukasiewicz'
- classmethod __contains__(member)
Return True if member is a member of this enum raises TypeError if member is not an enum member
note: in 3.12 TypeError will no longer be raised, and True will also be returned if member is the value of a member in this enum
- classmethod __getitem__(name)
Return the member matching name.
- classmethod __iter__()
Return members in definition order.
- classmethod __len__()
Return the number of members (no aliases)
- class gaia.core.integrated_structures.FuzzyElement(element, membership)[source]
Bases:
object
Element with fuzzy membership degree.
- __init__(element, membership)
- class gaia.core.integrated_structures.IntegratedFuzzySet(elements, membership_fn, name='fuzzy_set')[source]
Bases:
GAIAComponent
Integrated fuzzy set implementing sheaf structure on [0,1].
- class gaia.core.integrated_structures.IntegratedSimplex(dimension, name, components=None, membership=1.0, payload=None)[source]
Bases:
SimplicialStructure
Integrated simplex with fuzzy membership and categorical structure.
- classmethod __class_getitem__(params)
Parameterizes a generic class.
At least, parameterizing a generic class is the main thing this method does. For example, for some generic class Foo, this is called when we do Foo[int] - there, with cls=Foo and params=int.
However, note that this method is also called when defining generic classes in the first place with class Foo(Generic[T]): ….
- class gaia.core.integrated_structures.IntegratedFuzzySimplicialSet(name, max_dimension=3)[source]
Bases:
GAIAComponent
Integrated fuzzy simplicial set combining fuzzy and simplicial structures.
- class gaia.core.integrated_structures.IntegratedCoalgebra(initial_state, endofunctor, name='coalgebra')[source]
Bases:
Coalgebra
[<MockTorch name=’mock.Tensor’ id=’4349657872’>],GAIAComponent
Integrated coalgebra for GAIA training dynamics.
- classmethod __class_getitem__(params)
Parameterizes a generic class.
At least, parameterizing a generic class is the main thing this method does. For example, for some generic class Foo, this is called when we do Foo[int] - there, with cls=Foo and params=int.
However, note that this method is also called when defining generic classes in the first place with class Foo(Generic[T]): ….
- evolve(state)
Evolve state using structure map: γ(state).
- gaia.core.integrated_structures.create_fuzzy_simplex(dimension, name, membership=1.0)[source]
Create a fuzzy simplex with given properties.