rmnldwg / lymph

Python package for statistical modelling of lymphatic metastatic spread in head & neck cancer.
https://lymph-model.readthedocs.io
MIT License
5 stars 4 forks source link

vectorize likelihood #13

Closed rmnldwg closed 9 months ago

rmnldwg commented 3 years ago

For performance reasons it would be great if the likelihood function (as well as the risk & set_theta functions) could take a list of parameter vectors and consequently return a list of likelihoods (or risks respectively).

rmnldwg commented 9 months ago

This is not quite possible (at least I don't see a way) in a way that would actually fully vectorize the likelihood. Closing this.