Skip to content

Commit

Permalink
Examples Modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ApurvaDani committed May 8, 2021
1 parent ba30cfe commit 5ea2cd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions examples/run_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@
# net = ResNet18(channel=1)
# net = mlpMod(dim, nclasses, embSize=24)
net = CifarNet()
train_args = {'n_epoch':10, 'lr':float(0.001), 'batch_size':16}
strategy_args = {'batch_size' : 64}
train_args = {'n_epoch':250, 'lr':float(0.01), 'batch_size':20}
strategy_args = {'batch_size' : 20}
strategy = BADGE(X_tr, y_tr, X_unlabeled, net, handler, nclasses, strategy_args)

# strategy_args = {'batch_size' : 1, 'submod' : 'facility_location', 'selection_type' : 'PerClass'}
# strategy = FASS(X_tr, y_tr, X_unlabeled, net, handler, nclasses, strategy_args)

# strategy_args = {'batch_size' : 16}
# strategy_args = {'batch_size' : 20}
# strategy = EntropySampling(X_tr, y_tr, X_unlabeled, net, handler, nclasses)
# strategy = RandomSampling(X_tr, y_tr, X_unlabeled, net, handler, nclasses, strategy_args)
# strategy = LeastConfidence(X_tr, y_tr, X_unlabeled, net, DataHandler_Points, nclasses, strategy_args)
# strategy = MarginSampling(X_tr, y_tr, X_unlabeled, net, DataHandler_Points, nclasses)

# strategy_args = {'batch_size' : 2, 'n_drop' : 2}
# strategy_args = {'batch_size' : 20, 'n_drop' : 2}
# strategy = EntropySamplingDropout(X_tr, y_tr, X_unlabeled, net, DataHandler_Points, nclasses, strategy_args)
# strategy = LeastConfidenceDropout(X_tr, y_tr, X_unlabeled, net, handler, nclasses, strategy_args)
# strategy = MarginSamplingDropout(X_tr, y_tr, X_unlabeled, net, DataHandler_Points, nclasses, strategy_args)

# strategy_args = {'batch_size' : 16, 'tor':1e-4}
# strategy_args = {'batch_size' : 20, 'tor':1e-4}
# strategy = CoreSet(X_tr, y_tr, X_unlabeled, net, handler, nclasses, strategy_args)

#Training first set of points
Expand Down
1 change: 0 additions & 1 deletion examples/run_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from distil.active_learning_strategies.adversarial_bim import AdversarialBIM
from distil.active_learning_strategies.adversarial_deepfool import AdversarialDeepFool
from distil.active_learning_strategies.kmeans_sampling import KMeansSampling
from distil.active_learning_strategies.BaselineSampling import BaselineSampling
from distil.active_learning_strategies.bayesian_active_learning_disagreement_dropout import BALDDropout

from distil.utils.models.simple_net import TwoLayerNet
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

setup(
name='decile-distil',
version='0.0.3',
version='0.1.2',
author='Apurva Dani, Durga Sivasubramanian, Nathan Beck, Rishabh Iyer',
author_email='[email protected]',
url='https://github.com/decile-team/distil',
download_url = 'https://github.com/decile-team/distil/archive/0.0.3.tar.gz',
download_url = 'https://github.com/decile-team/distil/archive/refs/tags/0.1.tar.gz',
license='LICENSE',
packages=setuptools.find_packages(),
description='DISTIL is a package for Deep dIverSified inTeractIve Learning.',
Expand Down

0 comments on commit 5ea2cd2

Please sign in to comment.