Giter Site home page Giter Site logo

predictive-agent's Introduction

Python-predict-agent

TODO

  • Shorter term
    • Train code abstraction (from DML to real)
  • Longer term
    • CircularEnvironment
    • Continuous action
    • Implement VBN-like, curiosity-like, world-model-like
    • Makefile setting (ref. https://kimjingo.tistory.com/203)
    • Theoretical proof of convergence

main.py

  • Train
python3 main.py --config configs/test.yaml

Deepmind lab

Download and install deepmind lab

git clone https://github.com.deepmind/lab.git

Build it following the build instructions

Clone repo inside the lab directory

cd lab
git clone https://github.com/khhandrea/python-predictive-agent

Add following lines at the end of lab/BUILD file

package(default_visibility = ["//visibility:public"])

py_library(
    name = "prednav-lib",
    srcs = glob(["python_predictive_agent/**/*.py"]),
    data = [":deepmind_lab.so"],
    imports = ["python_predictive_agent"]
)

filegroup(
    name = "prednav-filegroup",
    srcs = glob(["python_predictive_agent/configs/*.yaml"])
)

py_binary(
    name = "prednav",
    srcs = ["python_predictive_agent/main_dml.py"],
    data = [
        ":deepmind_lab.so",
        ":prednav-filegroup"
    ],
    main = "python_predictive_agent/main.py",
    deps = [
        ":prednav-lib",
    ]
)

Run the bazel command to run the agent

bazel run :prednav

or from user windows

bazel run :prednav --define graphics=sdl

Results

name description
config.yaml configuration file of the experiment
checkpoints/ model parameters, the form of state_dict
coordinates/ agent trajectories, the form of csv
log/ tensorboard log

Tensorboard

tensorboard --logdir=experiment_results(/{experiment name})

predictive-agent's People

Contributors

khhandrea avatar

Watchers

Kostas Georgiou avatar  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.