def put_deltas_to_server(delta, master_url='localhost:5000'):
    request = urllib2.Request('http://{0}/update'.format(master_url),
                              pickle.dumps(delta, -1), headers={'Content-Type': 'application/elephas'})
    return urllib2.urlopen(request).read()
Update master parameters with deltas from training process
dataset/ETHPy150Open maxpumperla/elephas/elephas/spark_model.py/put_deltas_to_server