jensandClaude Sonnet 5 656a0252d3 Wire up temperature-based sampling for poet text generation
Greedy argmax decoding in RbmListener::forward always produces the
exact same character sequence and quickly falls into short repeating
loops once the 5-character lookback state revisits a prior cycle.

Add an optional temperature argument (poet f <seed> [temperature]) that
switches decoding to RnnStack::sample_one_hot, which now does proper
categorical sampling (temperature-scaled, renormalized draw) instead of
the old per-code Bernoulli approach that could leave the result as a
non-one-hot probability vector. Also seed Armadillo's RNG in main(),
since it otherwise defaults to a fixed seed and every run would sample
identically.

Add docs/RNN_ARCHITECTURE.md documenting how the RnnStack/Layer stack
implements the RNN (context chaining across layers, training/generation
data flow, and the decoding behavior above).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016K8Gu7Qejd11JbdiHZqYAs
2026-07-27 12:34:44 +02:00
2026-07-26 21:49:32 +02:00
2024-01-22 13:55:51 +01:00
2022-06-28 19:20:04 +02:00
2026-07-26 21:49:32 +02:00
2024-01-21 14:06:27 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-01-21 14:11:25 +01:00
2024-03-04 09:00:16 +01:00
2024-02-03 09:06:13 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2022-06-28 19:20:04 +02:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2026-07-26 21:49:32 +02:00
2022-06-28 19:20:04 +02:00
2024-03-04 09:00:16 +01:00
2022-06-28 19:20:04 +02:00
2026-07-26 21:49:32 +02:00
2024-03-04 08:58:48 +01:00
2024-01-31 17:15:23 +01:00
2024-01-31 17:15:23 +01:00
2024-01-31 17:15:23 +01:00
2024-01-31 17:15:23 +01:00
2024-01-31 17:15:23 +01:00
2024-01-31 17:15:23 +01:00
2022-06-28 19:20:04 +02:00
2026-07-26 21:49:32 +02:00
2024-01-22 21:22:43 +01:00
2024-01-22 21:22:43 +01:00
2024-01-22 21:22:43 +01:00
2024-01-22 21:22:43 +01:00
2024-01-22 21:22:43 +01:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2026-07-26 21:50:50 +02:00
2022-01-20 18:53:10 +00:00
2024-03-04 09:00:16 +01:00
2024-03-04 08:58:48 +01:00
2024-03-04 08:58:48 +01:00
2024-03-04 08:58:48 +01:00
2024-01-23 21:05:39 +01:00
2024-02-02 19:14:32 +01:00
2022-06-28 19:20:04 +02:00
2026-07-26 21:49:32 +02:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
2024-03-04 09:00:16 +01:00
S
Description
No description provided
144 MiB
Languages
C++ 92.6%
C 4.2%
Makefile 2.8%
Shell 0.4%