reinforcement_engine 0.4.0
reinforcement_engine: ^0.4.0 copied to clipboard
Pure Dart reinforcement learning with Q-Learning, SARSA, Double Q, R-Learning, eligibility traces, composable exploration and evaluation.
Unreleased #
0.4.0 #
- Add immutable versioned TrainingCheckpoint snapshots for built-in tabular, Double Q, R-learning and boundary-only SARSA(lambda) agents.
- Preserve configuration, current epsilon, both Double Q estimators and average reward; restore with an explicitly new random stream and typed key codecs.
- Reject unsupported custom strategies, active eligibility traces, malformed formats and decoded key collisions without mutating an existing learner.
- Add JSON transfer/resume and before/after evaluation to the Flutter lab, bilingual checkpoint guides, VM/JavaScript example and behavioral tests.
0.3.0 #
- Validate learning stability across 420 task/parameter/seed combinations; publish raw results, provenance and bilingual reports retaining capped unsuccessful runs.
- Validate independent public-contract consumers; document continuing/episodic lifecycle, persistence limitations and additive migration from 0.2.
- Add RLearningAgent with relative values and an average-reward estimate, using explicit post-update greedy gating and validated projected table updates.
- Add ContinuingAgent, trainContinuing and MaintenanceTask for bounded continuing windows that preserve environment state and reward estimates.
- Add accumulating SarsaLambdaAgent, EpisodicAgent and trainEpisodic, including bootstrap-preserving truncation and trace cleanup after episode errors.
- Add bilingual continuing/trace guides, executable examples and Flutter demos.
0.2.0 #
-
Add Expected SARSA with behavior probabilities bound to the current policy and exploration schedule, including greedy ties and distribution validation.
-
Add DoubleQAgent with two independent estimators and cross-table bootstraps.
-
Add LearningAgent, ActionValues and ExplorationPolicy contracts, epsilon-greedy and stable fixed-temperature softmax policies, preserving the default seeded API.
-
Add four-algorithm Flutter controls, algorithm/policy tests, bilingual control guides and runnable exploration/comparison examples.
-
Add
expectedSarsato LearningAlgorithm; exhaustive consumer switches may require a new branch. Existing TdUpdateRule implementations remain compatible. -
Add read-only policy evaluation with independent RNG, caller-defined success, immutable episode summaries and aggregate reward/step/termination metrics.
-
Add the
ActionPolicycontract andGreedyPolicy, shared by evaluation and the agent's exploitation path while preserving seeded behavior. -
Add deterministic Cliff Walking with nonterminal cliff resets and a runnable Q-Learning/SARSA comparison.
-
Add Flutter evaluation controls and bilingual guides for the next 0.2 release.
0.1.0 #
-
Align source organization with the engine family: contracts, domain values, algorithms, agents, values, training and reference environments.
-
Add composable
TdUpdateRule,QLearningandSarsastrategies while retaining the existing enum constructor and public exports. -
Add bilingual architecture, algorithm, extension, persistence and integration guides, class diagrams, runnable consumer examples and strategy parity tests.
-
Generic tabular Q-Learning and SARSA agents.
-
Epsilon-greedy exploration, random tie-breaking and seeded runs.
-
Sparse JSON Q-tables with user-defined state/action codecs.
-
Bounded episode runner with separate termination and truncation.
-
GridWorld and interactive Flutter learning lab.
-
Retain Flutter compatibility across the Material library split.