Git Product home page Git Product logo

Comments (5)

maxpumperla avatar maxpumperla commented on September 14, 2024

It really depends on your application to see if that is really worth it. The point of elephas (for me) was always to do distributed training and get the resulting model back on master to work with it as regular keras model. Usually predictions are relatively fast and one shouldn't underestimate the overhead it takes to construct e.g. an RDD from test data. Often this already outweighs the speed gains for parallel predictions.

But in general you're right, this is certainly an interesting suggestion and I will think about it for future releases. Thanks!

from elephas.

alexrisman avatar alexrisman commented on September 14, 2024

Thanks! I agree that parallelized prediction probably wouldn't be very useful for production systems, the use case I have in mind is for training when I want to calculate different metrics, some of which can't be implemented in Theano/Keras (or at least not at all straightforwardly), on validation data between epochs, and then do things like checkpoint the model at the epochs it does best on each metric.

Related question: if you pass a validation_split argument to train, that validation will happen in parallel, right?

from elephas.

aditsanghvi94 avatar aditsanghvi94 commented on September 14, 2024

Any update on whether parallelized predictions are in the pipeline or an easy way to do them?

from elephas.

danielenricocahall avatar danielenricocahall commented on September 14, 2024

I just finished implementing distributed predict and evaluate - they should be in the next release coming out this week!

from elephas.

danielenricocahall avatar danielenricocahall commented on September 14, 2024

Officially added support for parallel prediction and evaluation in 1.1.0: https://github.com/maxpumperla/elephas/releases/tag/1.1.0 feel free to play with it and let me know how it goes!

from elephas.

Related Issues (20)

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.