Last active
June 1, 2019 00:21
-
-
Save fonnesbeck/2291ca98dc0d7c59931e67177380b208 to your computer and use it in GitHub Desktop.
Revisions
-
fonnesbeck revised this gist
Jun 1, 2019 . 1 changed file with 9 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,9 @@ 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) -
fonnesbeck created this gist
May 31, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ more_curves = [1810, 2225, 3015] with curve_spin_model: pm.set_data({'spin': more_curves}) post_pred = pm.sample_posterior_predictive(trace, samples=1000)