Coder Social home page Coder Social logo

activelearning's Introduction

ActiveLearning

MNIST Active Learning

Requirements to install ( python2 or python3 )

python -m pip install -r requirements.txt --user --no-cache or

python3 -m pip install -r requirements.txt --user --no-cache

To run

python activemnist.py 1 10 2000 True old True 5 or

python3 activemnist.py 1 10 2000 True old True 5

Additional Running Info

######runs a test with the following parameters:

###1st parameter: number of runs (almost always want just 1 or will be extremely long)

###2nd parameter: how big each mini-batch should be

###3rd parameter: how many mini-batches in a run

###4th parameter: active learning turned on or not

###5th parameter: classification task ('old', '3s', 'split')

###6th parameter: re-samping turned on or not

###7th parameter: how often training is tested with test set

example: python activemnist.py 1 10 2000 True old True 5

would start one full run with mini-batches of size 10 for 2000 iterations with Active Learning

turned on, classifying digits from 0-9, with re-sampling and printing test results every 5 mini-batches

in addition it would then run 20 epochs at intervals of 250 label counts

activelearning's People

Contributors

smatt989 avatar yashkumaratri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

activelearning's Issues

Value error

Tried running the python script in a jupyter notebook.
I keep getting this error.
ValueError Traceback (most recent call last)
in ()
241 # turned on, classifying digits from 0-9, with re-sampling and printing test results every 5 mini-batches
242 # in addition it would then run 20 epochs at intervals of 250 label counts
--> 243 make_a_good_test(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3]), sys.argv[4] == 'True', extra_sampling, print_every)

ValueError: invalid literal for int() with base 10: '-f'
I'm unable to find the source of this error ..would you be able to help me backtrack ?
Thanks

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.