David R. Pugh
David R. Pugh
I wonder if we can use the same trick that Tensorboard user and just try to set `port=0`. https://github.com/tensorflow/tensorboard/issues/1177 I have tried launching a server with `port=0` and it launches...
The following will launch the Bash magic that extracts the port number using `netstat`. Seems brittle though and am not sure how to go about doing this from within Python....
@jstac @albop @mmcky I am continuing to make slow but steady progress implementing my [boundary value problem solver](https://github.com/davidrpugh/pyCollocation). At the moment it mimics closely the functionality of the CompEcon `colode.m`...
@jstac @cc7768 @spencerlyon2 @mmcky I would be keen to include [pyCollocation](https://github.com/davidrpugh/pyCollocation) in quantecon. PyCollocation uses a collocation method to solver boundary value problems. PyCollocation mimics the functionality of the CompEcon...
@jstac Thanks. As I said I think that the code does need a bit more polishing and I would like to include some more example notebook demonstrating usage. One question...
@albop The naive Numba interpretation... ``` python @jit def iterate(X, F, T, params): """Iterate a non-linear map F starting from some X for T periods.""" t = 0 while t...
@albop Thanks for the links. I did notice earlier today that passing a function as an argument is problematic. Here are two tentative solutions that I have been playing with......
Partially solved with help from [SO](http://stackoverflow.com/questions/32046528/efficient-simulation-of-arbitrary-dynamical-system-in-python-via-numba)... ``` python @njit def tinker_bell_map(X, params, out): out[0] = X[0]**2 - X[1]**2 + params[0] * X[0] + params[1] * X[1] out[1] = 2 *...
@sebgraves What is the dimension of the functions that these routines can be used to approximate? Many (possibly all) of these routines will exist in [numpy.polynomial](https://docs.scipy.org/doc/numpy/reference/routines.polynomials.package.html) package or [scipy.interpolate](https://docs.scipy.org/doc/scipy-0.18.1/reference/interpolate.html) (possibly...
@jstac I see. So wrapping standard numerical routines for functional approximation, interpolation, etc that already exist in other packages is definitely something that we want to do in quantecon? I...