File size: 1,518 Bytes
1f71c7d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""PALIMPSESTE — Un Cortex Hypervectoriel Auto-Référentiel.

A self-referential, append-only, hypervectorial memory substrate where:

  - there is no stored weight matrix ``W`` — the "parameters" are *reconstructed*
    at each instant by associative retrieval from memory;
  - learning is an ``O(1)`` append to an LSH-indexed knowledge base (no gradient,
    no GPU, no retraining epoch);
  - the system is driven by autonomous minimization of its own predictive
    surprise (active inference);
  - the read-back kernel ``Phi`` is itself encoded in a reserved meta-subspace
    ``H_meta`` of the same memory, and may rewrite itself only under a
    Lyapunov (energy-decreasing) constraint.

See ``docs/architecture.md`` and the module docstrings for the full formalism.

Public API:

    from palimseste import HV, random_hv, bind, bundle, similarity
"""

from __future__ import annotations

__version__ = "0.1.0"

# Core primitives re-exported for convenience. Heavy submodules (memory, phi,
# loop) are imported lazily by users to avoid pulling numpy/extra deps at
# package-import time when only primitives are needed.
from .hv import (
    HV,
    DEFAULT_D,
    random_hv,
    constant_hv,
    bind,
    unbind,
    bundle,
    hamming,
    similarity,
    bits_to_signs,
    signs_to_bits,
)

__all__ = [
    "HV",
    "DEFAULT_D",
    "random_hv",
    "constant_hv",
    "bind",
    "unbind",
    "bundle",
    "hamming",
    "similarity",
    "bits_to_signs",
    "signs_to_bits",
    "__version__",
]