lucasplagwitz / recon Goto Github PK
View Code? Open in Web Editor NEWPrimal-Dual Solver for Inverse Problems
Home Page: https://lucasplagwitz.github.io/recon/
License: GNU General Public License v3.0
Primal-Dual Solver for Inverse Problems
Home Page: https://lucasplagwitz.github.io/recon/
License: GNU General Public License v3.0
Hi,
I was looking at the Projection term and I noticed something that I can't quite explain.
I would expect when you do the proximal of ||Grad*x||_1�
that you want to sum the squares of the derivatives in the two/n directions at the same point and then replicate the same vector over both dimensions.
Assuming that what comes in (the vector f) is f=Grad*x
(or part of it contains this term...), this vector contains the derivative over the first dimension in the first half and the derivative over the second dimension in the second half. So I would have expected it to be reshaped as (2, nmodel) and summed over the 0 axis
Looking at your cod
aux = np.sqrt(np.sum(abs(np.reshape(f, (int(self.shape/self.n_dim), self.n_dim)))**2, axis=1))
it looks to me like as if you reshape it the other way around so that the sum is over the derivative of 2 neighbour points instead of the two derivatives at the same point, perhaps just a small mistake when you ported matlab code that uses Fortran array layout vs Python C layout? Or am I missing something wrt theory?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.