Giter Club home page Giter Club logo

hrn_lrpb's Introduction

HRN

Code for NeurIPS paper: "HRN: A Holistic Approach to One Class Learning"

Prerequisites


Some important packages' versions are as follow:
scikit-learn == 0.21.3
torch == 1.2.0

Usage


You can run our code on MNIST directly by this instruction "python3 main.py". Meaning of the arguments:

--max_epochs: the number of epochs of training

--batch_size: the size of the batches

--lr: the learning rate of the adam optimizer

--n_cpu: the number of cpu threads to use during batch generation

--img_size: the lenth of input image vectors (eg. mnist is 28*28=784)

--num_classes: the number of classes of the dataset

--gpu: choose whether to use gpu

--dataset: choose dataset for experiments

Please cite our paper the code helps you, thanks very much.
@article{hu2020hrn, title={HRN: A Holistic Approach to One Class Learning}, author={Hu, Wenpeng and Wang, Mengyu and Qin, Qi and Ma, Jinwen and Liu, Bing}, journal={Advances in Neural Information Processing Systems}, volume={33}, year={2020} }

hrn_lrpb's People

Contributors

morning-dews avatar trellixvulnteam 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.