Code Monkey home page Code Monkey logo

cbs-ml's Introduction

CBS-ML

Machine learning-guided conflict selections for Conflict-Based Search.

Setup

Follow instructions in CBSH2 to compile the c++ code.

A set of instances for the lak503d map are in the instance folder.

Data Collection and Training

Below is an example to collect data for the lak503d map for the instance instances/lak503dmap-100agents-0.agents with 2 hours runtime. The option -u 1 specifies data collection mode.

./CBSH2 -m instances/lak503d.map -o collect_log.csv -t 7200 -s 1 -h WDG -a instances/lak503dmap-100agents-1.agents -u 1 --feature feature/feature_Lak503d_0.txt

After data collection, process the data with the following python script for it to be compatible with the SVM rank software.

python dataProcessor.py

After that, one can use the SVM rank software to train the model using the produced data files.

Once finished training, there will be a trained SVM rank model the main folder. Open the file and extract the weights into a new weight file weight_file with the content being rows of pairs featureID weights.

Testing

To run test on the lak503d map with 1 hour runtime on instance instances/lak503dmap-100agents-2.agents, one can use the command below. The option -u 4 specifies test mode.

./CBSH2 -m city/Paris/lak503d.map -o run_test_ML.csv -t 3600 -s 1 -h WDG -a instances/lak503dmap-100agents-2.agents -k 100 -u 4  --model weight_file

Citation

Please cite our paper if you use this code in your work.

@inproceedings{huang2021conflict,
  title={Learning to resolve conflicts for multi-agent path finding with conflict-based search},
  author={Huang, Taoan and Dilkina, Bistra and Koenig, Sven},
  booktitle={AAAI Conference on Artificial Intelligence},
  year={2021},
  pages={11246--11253}
}

cbs-ml's People

Contributors

hta1996 avatar

Stargazers

 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.