Last active
June 1, 2019 00:21
-
-
Save fonnesbeck/2291ca98dc0d7c59931e67177380b208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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