Giter VIP home page Giter VIP logo

nnequivalence's Introduction

NNEquivalence

Tool to encode the equivalence problem for NNs as mixed integer linear program (MILPs).

Requirements

The tool is written in Python 3.6

This tool uses version 8.1.1 of the Gurobi solver to solve the resulting MILP instances. The website of Gurobi can be found here, they offer free academic licenses for their software.

We recommend also using version 8.1.1 of Gurobi for this tool. For version 9.0 an annoying error occurs, that doesn't seem to have any effect, but it's error message is printed every time, a command in the console is executed.

Instructions on how the gurobipy module can be installed can be found at the end of the quickstart guide.

Several other python modules are needed, in order to use all functionality. Among them are numpy, pandas, matplotlib.pyplot, h5py, pickle, texttable and sklearn. I might have missed modules, that were already present in my environment however.

Jupyter is needed to run Jupyter notebooks.

Structure

  1. An introduction to the usage of the tool is given in the DemoNotebook.
  2. The directory ExampleNNs contains hdf5 files containing saved neural networks.
  3. The FinalEvaluation package contains code to execute the final evaluation, as well as the datasets obtained in the final evaluation. The datasets consist of pandas dataframes as well as gurobi generated inputs as pickle files and a zip-folder containing gurobi logs of the solution process of the MILP instances. Also a notebook, that was used for the analysis of the generated dataset is included.

nnequivalence's People

Contributors

phk3 avatar samysweb 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.