Coder Social home page Coder Social logo

fnc-adversarial's People

Contributors

cjstadler avatar wideglide avatar

Watchers

 avatar  avatar

fnc-adversarial's Issues

make adversarial sample generation parallel

three options

  1. split input csv and process with multiple python processes; parallelize with shell script
  2. add argument to process i-j items in the list; parallelize with shell script
  3. native parallelization with python

currently have number 3 implemented with joblib, here's performance on a small subset.
Clearly, there's something happening (pickling results?) at the end (after 91 done) that causes it to take 2 min for the final join. It may not matter though because I think this time will be constant with larger subsets.

Replacing 4 words in each example
[Parallel(n_jobs=38)]: Using backend LokyBackend with 38 concurrent workers.
[Parallel(n_jobs=38)]: Done   9 tasks      | elapsed:   11.5s
[Parallel(n_jobs=38)]: Done  22 tasks      | elapsed:   12.6s
[Parallel(n_jobs=38)]: Done  36 out of 100 | elapsed:   13.4s remaining:   23.8s
[Parallel(n_jobs=38)]: Done  47 out of 100 | elapsed:   14.3s remaining:   16.1s
[Parallel(n_jobs=38)]: Done  58 out of 100 | elapsed:   15.8s remaining:   11.5s
[Parallel(n_jobs=38)]: Done  69 out of 100 | elapsed:   16.8s remaining:    7.6s
[Parallel(n_jobs=38)]: Done  80 out of 100 | elapsed:   19.2s remaining:    4.8s
[Parallel(n_jobs=38)]: Done  91 out of 100 | elapsed:   20.9s remaining:    2.1s
[Parallel(n_jobs=38)]: Done 100 out of 100 | elapsed:  2.2min finished

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.