lincc-frameworks / tdastro

MIT License
4 stars 0 forks source link

Adapt HostmassX1Func to use random node infrastructure #89

Closed jeremykubica closed 2 months ago

jeremykubica commented 2 months ago

Create a new NumericalInversePolynomialFunc node that wraps scipy's NumericalInversePolynomial. This wrapping allows us to reuse all the of the infrastructure for getting and setting seeds.

Change HostmassX1Func to use this NumericalInversePolynomialFunc. Add a bunch of tests to confirm that it is generating both new samples and underlying hostmasses.

github-actions[bot] commented 2 months ago
Before [aa81e3f2] After [e8789985] Ratio Benchmark (Parameter)
6.92±0.03ms 7.02±0.07ms 1.01 benchmarks.time_chained_evaluate

Click here to view all benchmarks.