ensemble / palimseste /__pycache__ /__init__.cpython-313.pyc

Commit History

v0.5.1: morphological filtering in solve_analogy (50%->62%), cosmul option exposed, cosadd default
593be8a
verified

thefinalboss commited on

v0.5: factual generalization via dense analogy. learn_relation + solve_analogy implement Mikolov paris-france+spain=madrid in normalized dense space, averaged over known examples, excluding the query slot. Wired into structural answer() so unseen slots get plain-text answers. Measured end-to-end via the Brain with fastText: capitals holdout goes 0% (char) / 0% (structural) -> ~50-67% factual-correct (spain->madrid, portugal->lisbon, greece->athens, norway->oslo recovered correctly). from_fasttext uses batch projection (fast load). The semantic wall is broken. 109 tests.
595d852
verified

thefinalboss commited on

v0.4: optional embedding expert for real semantic similarity. New projection.py (dense->HV via random projection + sign, cosine-preserving). EmbeddingExpert plugs into the brain unchanged (duck-typed Expert contract) and makes spain~portugal similar at the HV level (the missing ingredient for analogy). Two paths: from_corpus_local (PPMI+SVD mini-embedding, numpy-only) and from_fasttext (pretrained .vec). StructuralEncoder.attach_embedding wires semantic slot HVs. Honest: mini-embedding brings semantic similarity (measurable) but factual correctness stays ~0% (needs fastText + better decoding); pipeline ready. 106 tests.
0bee73d
verified

thefinalboss commited on

v0.3: structural query encoding (patterns + slots) for generalization. Expert.from_qa_pairs now accepts patterns=[...]; questions matching a template are encoded as bind(pattern_hv, slot_hv). On a capitals holdout benchmark, char-level returns empty 100% of the time on unseen slots; structural returns a well-formed answer 100% of the time (+100 pts graceful degradation). Honest: format-generalized guesses by analogy, not factual correctness (no embeddings). 91 tests passing.
27038ac
verified

thefinalboss commited on

v0.2: global shared BPE tokenizer + persistent central brain memory + brain save/load. BPE lifts quality ceiling (TinyStories 150KB D=5000: next-token acc 94.5% -> 98.5%, latency 112ms -> 28ms, RAM halved). BrainMemory grows via thinking and survives save/load. 75 tests.
22d1ad7
verified

thefinalboss commited on