GithubHelp home page GithubHelp logo

agent-cribbage's Introduction

agent-cribbage

There are 4 jobs that you can call in this module:

1- Play against an agent or make play 2 agents agaisnt each other (requires a .yaml configuration)
2- Preheat a model (Only works for The Show phase model).
3- Train agents models (requires a .yaml configuration)
4- Evaluate models in a given directory (requires a directory containing one or many configurations to evaluate, and the path where the models are located).

For you to play against our best agent:

python -m agent-cribbage Play --agent_yaml ./agent-cribbage/Configurations/Play_agent_vs_human.yaml

For you to play against the simple deterministic agent:

python -m agent-cribbage Play --agent_yaml ./agent-cribbage/Configurations/Play_deterministic_vs_human.yaml

To make play multiple agents against each other multiple games:

python -m agent-cribbage Play --agent_yaml ./agent-cribbage/Configurations/Play_agent_vs_random.yaml --number_games 1000

To preheat the model for phase 0 (The Show):

python -m agent-cribbage Preheat --model conv --epochs 3

To train a model giving a configuration:

python -m agent-cribbage Train --epochs 500 --number_games 200 --agent_yaml ./agent-cribbage/Configurations/Train_agent_ConvLstm_Dealer+split_discarded_MC.yaml --dataepochs2keep 5

To evaluate a directory containing multiple models:

python -m agent-cribbage Evaluate --number_games 5000 --config_dir ./agent-cribbage/Evaluate/Train_agent_ConvLstm_Dealer+split_discarded --model_dir ./Train_agent_ConvLstm_Dealer+split_discarded_MC

agent-cribbage's People

Contributors

atremblay avatar gbmarc1 avatar josephdviviano avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

vachonni

agent-cribbage's Issues

Sequencer: alternate between data generation and training

Use latest model to generate new trajectories. Then, use these trajectories to train new value functions.
We could train the model with old data using a decaying learning rate(old data small lr while new data larger lr) up to a threshold.

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.