feat: MLE core package init
Browse files- mle/__init__.py +41 -0
mle/__init__.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
MLE — Morpho-Logic Engine
|
| 3 |
+
===========================
|
| 4 |
+
A novel reasoning AI architecture based on:
|
| 5 |
+
- 4096-bit binary hyperdimensional vectors
|
| 6 |
+
- Sparse distributed memory with Hamming distance proximity
|
| 7 |
+
- Circular convolution binding for semantic composition
|
| 8 |
+
- Energy-based dynamics for gradient-free reasoning
|
| 9 |
+
- SIMD-optimized CPU computation (bit-slicing + popcount)
|
| 10 |
+
|
| 11 |
+
Modules:
|
| 12 |
+
memory — Sparse Address Table with LSH indexing
|
| 13 |
+
routing — Recursive JIT Routing (beam search)
|
| 14 |
+
binding — Semantic binding via circular convolution & XOR
|
| 15 |
+
energy — Energy functions and relaxation dynamics
|
| 16 |
+
inference — Full reasoning engine
|
| 17 |
+
|
| 18 |
+
Quick start:
|
| 19 |
+
from mle import MorphoLogicEngine
|
| 20 |
+
engine = MorphoLogicEngine()
|
| 21 |
+
engine.add_concept("cat")
|
| 22 |
+
engine.add_relation("cat", "is_a", "animal")
|
| 23 |
+
result = engine.reason("cat")
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
__version__ = "0.1.0"
|
| 27 |
+
__author__ = "MLE Team"
|
| 28 |
+
|
| 29 |
+
from .inference.reasoning_engine import ReasoningEngine as MorphoLogicEngine
|
| 30 |
+
from .memory import SparseAddressTable, HammingLSH
|
| 31 |
+
from .routing import RecursiveJITRouter, RoutingResult
|
| 32 |
+
from .binding import HRRBinding, BinaryBinding, BindingEngine
|
| 33 |
+
from .energy import EnergyFunction, RelaxationDynamics, HopfieldDynamics, EnergyModel
|
| 34 |
+
|
| 35 |
+
__all__ = [
|
| 36 |
+
'MorphoLogicEngine',
|
| 37 |
+
'SparseAddressTable', 'HammingLSH',
|
| 38 |
+
'RecursiveJITRouter', 'RoutingResult',
|
| 39 |
+
'HRRBinding', 'BinaryBinding', 'BindingEngine',
|
| 40 |
+
'EnergyFunction', 'RelaxationDynamics', 'HopfieldDynamics', 'EnergyModel',
|
| 41 |
+
]
|