Coder Social home page Coder Social logo

bemoregt / balanced-mixup-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daisukelab/balanced-mixup-generator

0.0 2.0 0.0 706 KB

Class balancer extension to mixup-generator

License: MIT License

Python 6.45% Jupyter Notebook 93.55%

balanced-mixup-generator's Introduction

Class balanced mixup generator

This repository provides a class BalancedMixupGenerator inherited from MixupGenerator.

Motivation

MixupGenerator implements the mixup algorithm [1] efficiently, but I need generator to be aware of class balance even in a single batch.

This implementation fullfills this requirement.

BalancedMixupGenerator

This class generates class balanced batches that are mixup applied.

Limitation

  • Batch size has to be greater than or equal to number of classes.

Install

python setup.py install

References

[1] H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz, "mixup: Beyond Empirical Risk Minimization," in arXiv:1710.09412, 2017.

[2] Z. Zhong, L. Zheng, G. Kang, S. Li, and Y. Yang, "Random Erasing Data Augmentation," in arXiv:1708.04896, 2017.

balanced-mixup-generator's People

Contributors

daisukelab avatar yu4u avatar

Watchers

 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.