Skip to content

Autonomous Learning Agent(Lifelong Learner) RL Agent with EWC Fisher Compute

Notifications You must be signed in to change notification settings

bhardwajaditya113/Autonomous-Learning-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autonomous Agent with EWC (Continual Learning)

This repo implements a simple REINFORCE policy-gradient agent that trains sequentially on multiple OpenAI Gym tasks while using Elastic Weight Consolidation (EWC) to reduce catastrophic forgetting.

Quickstart

  1. Create virtualenv and install:

This script trains on CartPole-v1, computes EWC constraints, then continues training on MountainCar-v0 using EWC.

Files

  • main.py: Orchestrator / pipeline
  • train.py: Training loop helper
  • agent.py: Agent implementation (REINFORCE)
  • model.py: Policy neural network
  • ewc.py: EWC implementation (Fisher estimation + penalty)
  • utils.py: env compatibility helpers, plotting, saving

About

Autonomous Learning Agent(Lifelong Learner) RL Agent with EWC Fisher Compute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages