Giter Club home page Giter Club logo

flan_q2xs's Introduction

FLANs

Reference code for Feature-wise Latent Additive Networks.

Setup environment to run code

To run the code, it is advised to create an environment:

conda create --name flan python=3.6
conda activate flan

And install the repo (in editable mode if you wish to play around with the code)

pip install -e .

Troubleshooting: If you incur in some issues with the requirements, try to comment out the requirements throwing the error. Some of the requirements included are not necessary.

Main scripts

The main scripts are:

  1. bin/run_experiment.py for running the training of a FLANetwork. The flag --interactive can be used to run in verbose mode (i.e. showing the training updates). If the config file points to a folder containing a checkpoint, this will be loaded and the training will continue from there. In particular if the model already reached the epoch indicated, then only the test accuracy will be printed. To specify the config file, use the flag --config_file followed by the path to the config file.
  2. bin/benchmark_tabular.py to run the benchmarking code for tabular experiments.
  3. bin/results_analysis.py to analyze the results (especially creta the figures for the cub results). The --help flag should report the relevant flags and arguments to use to generate results figures. In particular, the --print_test_accuracy flag can be used to print the test accuracy.

Troubleshooting: If you incur in some issues with missing datasets, a relevant error mentioning where to download the dataset should be raised.

Included configs and ckpt

We include the config files and checkpoints of the best performing models. Note that the config files should be modified to point to the correct folders.

flan_q2xs's People

Contributors

trellixvulnteam avatar phineasng 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.