Skip to content

Instantly share code, notes, and snippets.

@fonnesbeck
Last active June 1, 2019 00:21
Show Gist options
  • Save fonnesbeck/2291ca98dc0d7c59931e67177380b208 to your computer and use it in GitHub Desktop.
Save fonnesbeck/2291ca98dc0d7c59931e67177380b208 to your computer and use it in GitHub Desktop.
traces = {}
for year in years:
with curve_spin_model:
year_data = curveball_data.query('year==@year')
pm.set_data({'spin': year_data.spin_rate,
'swing_miss': year_data.miss})
traces[year] = pm.sample(1000, tune=2000,
cores=2, progressbar=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment