Ryan McKenna

Results 6 issues of Ryan McKenna

I created my own Factor class, inheriting from DiscreteFactor but with overwritten implementations of all the key functions like product, sum, reduce, marginalize, etc. which would be more convenient to...

How can I get the start time (hour and minute, local time zone) for each game? I didn't see that information in either retrosheet.schedule_and_record or retrosheet.season_game_logs It only tells me...

I tried loading retrosheet events for 2023, and got the *ValueError: Event files not available for 2023*. I see that the 2023 data hasn't been released yet even though the...

Here's a minimal example to demonstrate the issue: ``` from autodp import privacy_calibrator, dp_bank import numpy as np sigma = privacy_calibrator.ana_gaussian_mech(1.0, 1e-6)['sigma'] delta = np.exp(dp_bank.get_logdelta_ana_gaussian(1.0, sigma)) 1.901276833828726e-05 ``` I expect...

Adds detailed docstrings to the `Domain` class in `src/mbi/domain.py` and the `Factor` class in `src/mbi/factor.py`. The docstrings explain the purpose of each class, their parameters, and key methods. This improves...

Cross posting from https://github.com/jax-ml/jax/issues/24929 ``` import opt_einsum import numpy as np formula = 'a,c,d,db,ab,cb,ac,cd,ad,b->dbc' arrays = [np.random.rand(*(2,)*len(key)) for key in formula.split('->')[0].split(',')] opt_einsum.contract_path( formula, *arrays, einsum_call=True, use_blas=True, optimize='optimal') # this hangs...