1. A method comprising: selecting a first parameter configuration for a neurostimulator; observing efficacy of the first parameter configuration; and selecting a second parameter configuration for the neurostimulator based on the observed efficacy of the first parameter configuration and a Bayesian network structure relating additional parameter configurations according to probability of efficacy.