Coder Social home page Coder Social logo

jaromiru / rcwcf Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 18.19 MB

Classification with Costly Features in Hierarchical Deep Sets

Home Page: https://arxiv.org/abs/1911.08756

License: Other

Python 83.18% JavaScript 7.83% HTML 1.17% CSS 0.21% Shell 7.62%

rcwcf's Introduction

This is the code used to create results for paper Classification with Costly Features in Hierarchical Deep Sets.

Directory structured as follows:

  • code: contains the code and datasets
  • vis_tool: javascript tool to visualize the agent's behavior
  • experiments: scripts to perform the experiments and produce the plots

In the code folder, there are three algorithms rl (the main agent), rw (random sampling), and mil (the hmil agent with all information) in their corresponding directories. The data folder contains preprocessed datasets.

In each directory, the main.py is the main script. Run agent_rl as: python main.py [dataset] [target lambda] i.e. python main.py recipes 0.001

Run agent_rw as: python main.py [dataset] [target budget] i.e. python main.py recipes 5.0

Run agent_mil as: python main.py [dataset] i.e. python main.py recipes

Note that toy_b dataset needs to be run with an additional argument -dataseed 0.

With a trained rl model, you can create a json for visualization in the vis_tool with agent_rl/eval_vis.py tool. Run as: python eval_vis.py [dataset] -model [model file]

The code requires numpy, pytorch and sklearn libraries.

rcwcf's People

Contributors

jaromiru avatar

Stargazers

 avatar  avatar  avatar

Watchers

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