slimgroup / genspgl.jl Goto Github PK
View Code? Open in Web Editor NEWGeneralized SPGL
License: MIT License
Generalized SPGL
License: MIT License
I recently tried to use this package as a replacement for the matlab version, only to find that I get very different results from the original implementation. I've been able to pin it down (I think) to the way the relative gap is computed. In SPGL1, the gap is computed as follows:
gap = r'*(r-b) + tau*gNorm;
rGap = abs(gap) / max(1,f);
while in this package it is computed using this formula:
Err = norm(init.x - tmp_proj)
rErr = Err/max(1,init.f)
I assume that the goal of this package is to reproduce the matlab results, but this different seems to be intentional. What is the rational behind it?
If I've simply found a bug, I'm happy to debug further and submit a PR that fixes my use case.
I get the
LoadError: syntax: incomplete: "function" at TraceNorm_project.jl:6 requires end
error when using GenSPGL
on julia 0.6.2
The offending piece in TraceNorm_project.jl
seems to be this:
if isapprox(norm(x), 0.0) && warn("norm(x) cannot be 0 in TraceNorm_project")
and commenting it out seems to make it all work.
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.