Giter Site home page Giter Site logo

sde_project's Introduction

SDE Project

Anush Deokar (B19CSE015)

Gautam Jain (B19CSE033)

Monte Carlo tree

The Monte Carlo tree search  technique might assist you choose amongst several possibilities. By randomly choosing a small number of queries in ASTs and move with the best likelihood of winning, it avoids examining every conceivable alternative. This is widely used in games like chess where knowing what move to make next is important if you want to win.

MCTS works by widening the search tree to determine which movements are most likely to result in a good outcome if selected. While time permits, the algorithm continues to investigate the tree, slightly favouring the branch that has either shown to be fruitful or has been less studied.

Creating Virtual Environment

python -m venv env
.\env\Scripts\activate

Run the following Commands

pip install pytest
pip install numpy
pip install scripy

Using this Libraries for ASTs

We have provided Run.py in /unprovised version on entering the virtual environment and installing all the module simple run the python file and same goes for the run_header.py file in /improvised/Main folder.

We'll suppose you have a general query library that can tell you what movements are feasible and allows you to conduct those moves to modify the game's state for the sake of demonstration.

After installing both the files we can run the run.py files and we get the following results: Time elapsed for Quering over Traditional Monte Carlo Tree: 8.314ms Time elapsed for Quering over Advanced Monte Carlo Tree: 7.916ms

Please note this time is the average time of quering over the ASTs also We have used the same dataset of ASTs for better comparative analysis

sde_project's People

Contributors

anushdeokar 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.