mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
checkpoint: File edit:
🚀 Generated with [Claude Code](https://claude.com/claude-code) 📊 V3 Development Progress Checkpoint Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
1 parent
37338d0d3e
commit
7968cff102
1 file changed
+2
-1
@@ -393,7 +393,8 @@ describe('PPO Algorithm', () => {
|
||||
|
||||
const result = ppo.update();
|
||||
|
||||
expect(result.policyLoss).toBeGreaterThanOrEqual(0);
|
||||
// Policy loss can be negative in PPO (we minimize -surrogate_objective)
|
||||
expect(typeof result.policyLoss).toBe('number');
|
||||
expect(result.valueLoss).toBeGreaterThanOrEqual(0);
|
||||
expect(result.entropy).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user