Giter Club home page Giter Club logo

warcraftshortestpaths.jl's Introduction

WarcraftShortestPaths

Stable Dev Build Status Coverage Code Style: Blue

Overview

This package implements techniques of machine learning for operations research to compute shortest paths on Warcraft terrain images. It is one of the applications of our paper Learning with Combinatorial Optimization Layers: a Probabilistic Approach.

This application was introduced in this paper, with the corresponding dataset and code. It was also considered in a Learning with Differentiable Perturbed Optimizers setting, with corresponding code.

We focus on two main frameworks: learning by imitation, involving Fenchel-Young losses and perturbed maximizers, and learning from experience. Both are based on the InferOpt.jl package. We also leverage the GridGraphs.jl package to compute shortest paths on grid graphs using Dijkstra algorithm.

Get started

  1. Please download this dataset and place it in the data folder of the repo. You can unzip it manually or using decompress_dataset function.

  2. You can then activate the environment locally with this command:

using Pkg
Pkg.activate(".")

Dataset overview

Each point of the dataset is linked to a (12x12) Warcraft terrain grid. It is composed of:

  • A color image of the Warcraft terrain of size (96x96).
  • The cost labels for the corresponding grid of size (12x12).
  • A 0-1 shortest path mask of size (12x12).

Two frameworks

The two distinct frameworks we consider are:

  1. Learning by imitation: given the images and labels, learn the cost such that the labelled shortest paths are close to the shortest path computed with the given cost using Dijkstra on the Warcraft grids.

  2. Learning by experience: given the images and a black-box function that computes the cost of a path on any grid, learn the cost such that the true cost of the paths computed as shortest paths with respect to the learned costs are low.

warcraftshortestpaths.jl's People

Contributors

louisbouvier avatar gdalle avatar

Stargazers

 avatar Léo Baty avatar Axel Parmentier 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.