Hirokazu Takaya

Results 96 comments of Hirokazu Takaya

Thank you and yes agent approach + spatial distribution #437 will lead country/province interconnection analysis. Outbreak in one country/province may cause outbreak in another country/province because of people movement. (In...

This may not be the same idea with you, but pattern analysis/prediction of S-R trend (or something like that) can be a new idea of analysis. Especially at province level,...

Do you mean you editted the source code file to use `fodent` instead of `scipy` and got a error message? Kindly share the error message.

Thank you for your confirmation. What was the error message?

To fix SyntaxError, please add comma to the second line of the following codes. ```Python sol = fd.fodeint( alpha=alpha deriv=self._model(population=population, **self._param_dict), x_initial=np.array(initials, dtype=np.int64), t=np.arange(tstart, tend + dt, dt), ) ```...

This error could be from the difference of `scipy.integrate.solve_ivp` (`covsirphy` uses) and `fodeint.fodeint`. `scipy.integrate.solve_ivp`: The function must be defined as **fun(t, y)** https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html `fodeint.fodeint`: The function must be defined as...

It will be required to check the output ok f `sol["y"].T` so that we can find the difference of the functions.

Source codes of `fodeint` indicates it returns y directly (instead of named tuple of t and y). We can try - to replace `sol["y"].T` with `sol`, or - to replace...

Good :) Actually, Python has a problem in speed, especially for loops. `fodeint` runs many loops and this may be the cause. https://github.com/mattja/fodeint/blob/master/fodeint/fodeint.py#L129-L133 Why `fodeint` is required for your analysis?

Thank you for your proposal, but I think CovsirPhy does not have reasons to use `fodeint` at this time because the main purpose is to provide effective and speedy tools...