Peter C Kroon

Results 330 comments of Peter C Kroon

I also played around with caching the objective evaluations by having `Fit.execute` wrap `self.objective.__call__` in a lru_cache, but that just plain doesn't work (discussion in #280). I'm completely happy to...

See also: https://stackoverflow.com/questions/53423121/why-does-functools-lru-cache-not-cache-call-while-working-on-normal-methods

This should address your code issues, and adds tests. Where would you like the docs? I don't really see a "natural" place.

I'm getting unrelated test failures: HadamardProduct is not defined. Do you have any idea what could be causing them?

I only have one example so far (and you're not going to like it) ``` python def boltzmann(T, V, *args, **kwargs): kbT = kb * T return exp(-V(*args, **kwargs)/kbT) def...

Nope, no clue how to do this :) You are right that this might be more of an assumption than a constraint, but I'm not sure that's more than semantics....

Slightly off-topic: If you need an ~~excuse~~ reason not to use complex_ode: it has known, unfixed bugs. https://github.com/scipy/scipy/issues/1976 https://stackoverflow.com/questions/34577870/using-scipy-integrate-complex-ode-instead-of-scipy-integrate-ode I'll make a separate issue concerning the parameter domains.

Hi, first things first: LBFGSB does not support constraints (but you specified you want that minimizer, so we assume you know better). From the top of my head you can...

One more thing: would it not be possible to do the fit unconstrained, and sort the theta's by size afterwards?

I renamed the issue. To close this we would need to make Fit warn when constraints are given, and a minimizer was selected that does not support them. Same for...