Is IT possible to use DEAP ( http://deap.readthedocs.io/en/master/) with a spark cluster to map the fitness evaluation function. I would like to run a GA but the fitness function is rather long and I was planning on distributing it on a spark cluster.
相关问题
- Implicit schema for pandas_udf in PySpark?
- Getting : Error importing Spark Modules : No modul
- Include null values in collect_list in pyspark
- How to add any new library like spark-sftp into my
- Convert pyspark dataframe into list of python dict
相关文章
- Pyspark error: Java gateway process exited before
- How to name file when saveAsTextFile in spark?
- Python spark extract characters from dataframe
- Java heap space OutOfMemoryError in pyspark spark-
- How to pass variables in spark SQL, using python?
- How to add multiple columns using UDF?
- Spark is only using one worker machine when more a
- Pyspark dataframe convert multiple columns to floa
You should look at the Using Multiple Processors section in the DEAP documentation and at this example. They explain how to replace the map function in the DEAP toolbox by a map function of your choice.
To use pyspark to map the fitness evaluation function, you could do something like that: