Code Monkey home page Code Monkey logo

neuro240's Introduction

neuro240

This final project attempts to cluster different agent types (random, deterministic, value-based) based on their trajectories. Unfortunately we can't differientiate between random and value-based ๐Ÿ˜“.

Notes for Aneesh for Future Development

Files tree:

/Users/aneesh/Documents/neuro240
โ”œโ”€โ”€ .gitattributes
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ agents
โ”‚ย ย  โ”œโ”€โ”€ d_agent.py
โ”‚ย ย  โ”œโ”€โ”€ r_agent.py
โ”‚ย ย  โ””โ”€โ”€ v_agent.py
โ”œโ”€โ”€ dataset
โ”‚ย ย  โ”œโ”€โ”€ gen.py
โ”‚ย ย  โ””โ”€โ”€ storage.py
โ”œโ”€โ”€ env
โ”‚ย ย  โ””โ”€โ”€ grid.py
โ”œโ”€โ”€ model
โ”‚ย ย  โ”œโ”€โ”€ full.py
โ”‚ย ย  โ”œโ”€โ”€ ln.py
โ”‚ย ย  โ””โ”€โ”€ pp.py
โ”œโ”€โ”€ train.py
โ”œโ”€โ”€ train.sh
โ””โ”€โ”€ utils
    โ”œโ”€โ”€ log.py
    โ”œโ”€โ”€ loss.py
    โ””โ”€โ”€ visualize.py
  • agents: Contains agent models implementing different strategies.

    • d_agent.py: Implements deterministic agents with predefined movement (we loop throug samples) patterns.
    • r_agent.py:random agents.
    • v_agent.py: value-iteration trained agents.
  • dataset: Handles dataset generation and storage.

  • env:

    • grid.py: grid environment with reward config in init
  • model:

    • full.py: The combined end-to-end model used to predict actions from latent representations.
    • ln.py: Latent space network for clustering trajectories.
    • pp.py: Prediction network that uses the latent space to determine the next state/action.
  • train.py: train script

  • train.sh: to run on HPC

Running Experiments

python train.py should work. Be careful with Jax Cuda, future work should convert codebase to jax for major speed up.

  • Agent Types:
    • Toggle experiments by modifying the agent_types variable in train.py. .

neuro240's People

Contributors

aneeshers avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.