Hi there, me again with a different problem.
I want to use algopy to compute the jacobian of a cost function that I'm using with scipy.optimize.leastsq.
I managed to compute the jacobian with algopy's forward mode and my minimization works faster with it, that's great! Now I wanted to try the reverse mode. However, I'm running into a NotImplementedError('should implement that') in utpm.py:228
I guess that until this feature is implemented I have to try to avoid ndarrays with dtype == object.
But I don't know how to avoid these 'object' dtype. For example, in the cost function I'm building an ndarray representing 3x3 rotation matrix and the individual elements of these matrix are of type <class 'algopy.tracer.tracer.Function'> and dtype('float64') but the resulting matrix is of type ndarray with dtype('object')
Any suggestion how to get pass this problem?
Thanks
Martin
elif isinstance(rhs,numpy.ndarray) and rhs.dtype == object:
raise NotImplementedError('should implement that')
This also comes from a part of my code that uses numpy arrays.
Has there been any other solution than dropping numpy for this?
--
You received this message because you are subscribed to the Google Groups "algopy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to algopy+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.