Comments (5)
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.
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.
Any update on whether parallelized predictions are in the pipeline or an easy way to do them?
from elephas.
I just finished implementing distributed predict and evaluate - they should be in the next release coming out this week!
from elephas.
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)
- Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe. HOT 18
- Elephas compatibility with tensorflow > 2.2 HOT 3
- [BUG] ml_model _transform HOT 5
- ASGD ζ ζ³ζΆζ
- Does support LSTM or GRU models? HOT 6
- TypeError: cannot pickle 'weakref' object HOT 1
- Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe.
- CNN in elephas
- RuntimeError: Method `model.to_yaml()` has been removed due to security risk of arbitrary code execution. Please use `model.to_json()` instead. HOT 2
- Issues on installing version 3.0.0 HOT 4
- Elephas installation Problem HOT 7
- Dose elephas support cutom loss cuntion or custom optimizer? HOT 1
- release Elephas with whl files?
- delete
- this pkg does't surpport scala? HOT 1
- Py4JJavaError: An error occurred while calling o559._run. HOT 1
- java.lang.NullPointerException while showing predicted output. HOT 6
- Regression seems to be broken with new versions. HOT 5
- Pipeline transform returns an empty prediction column HOT 6
- Remote Code Execution Risk through Client-Side Controlled Data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elephas.