Giter Site home page Giter Site logo

admil-p-f's Introduction

ADMIL-P-F

This repository contains code for the KDD2022 researcg track paper "Balancing Bias and Variance for Active Weakly Supervised Learning" This repository consists of three types of scripts: (1) Passive Learning Training, (2) Active Learning Training, (3) Query Instances using: (i) admil-p-f, (ii) admil-entropy, and (3) admil-random. The overall flow is first we perform passive learning training, query instances with given batch size, and train active learning models. Once, we train the models, we again query the instances and again perform training. Separate Scripts are written for each 4 datasets: 20 NewsGroup, Cifar10, Cifar100, and Pascal VOC. All the datasets are publicly available.

Performing Passive Learning Training:

To perform training for Cifar10, Cifar100, and Pascal VOC, execute following command:

python train_dro_passive_+dataset+".py" run gamma

For 20NewsGroup, execute following command:

python train_dro_passive_+dataset+".py" run topic_no gamma

This will run the passive learning models and store the model and evaluation result inside dro_passive

Performing Query:

To query instances for the first time execute the following command

python query_ins_+query_type+_+dataset+"_first.py"

To query instances from second time (where we ignore the instances queried in first AL iteration), execute following command

python query_ins_+query_type+_+dataset+"_second.py"

Above commands query the maximum n instances from positive bags and store inside Dataset folder. Where, n = 15 for 20 NewsGroup, 150 for Cifar10, Cifarr100, 30 for Pascal VOC

Performing Active Learning Training:

For Dataset other than 20NewsGroup

python train_dro_active_+query_type+_+dataset+".py" run gamma beta

For 20NewsGroup

python train_dro_active_+query_type+_+dataset+".py" run topic_no gamma beta

Where,

gamma can be regarded as inverse of lambda in the paper.

dataset one of the: 20newgroup, cifar10, cifar100, pascal_voc.

query_type is one of the: admil_p_f, admil_f_entropy, admil_random

admil-p-f's People

Contributors

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