In [1]:
import sampling_service.client.sampling_client as sc
In [10]:
reload(sc)
client = sc.Sampling_client('http://localhost:8000')
In [11]:
net_config = {
'num_samplers': 4,
'observers': range(16),
'biases': [-1.0, -0.5, -2.0, -1.5],
'weights': [[ 0.0, 1.5, 1.0, -1.0],
[ 1.5, 0.0, 1.0, -1.0],
[ 1.0, 1.0, 0.0, 0.5],
[-1.0, -1.0, 0.5, 0.0]],
}
run_config = {
'runtime': 10000,
}
result = client.run_experiment(net_config, run_config)
print result
In [ ]: