-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sparse regression example no longer working #77
Comments
@patwa67 are you sure you have the latest version of the package installed (0.5.0 or newer)? Running I can access julia> using ProximalAlgorithms
julia> ProximalAlgorithms.FastForwardBackward
FastForwardBackward (generic function with 1 method) |
I only get v0.4.1 when I try to update. |
You probably installed this in an environment where ProximalAlgorithms is constrained to <0.5 then (by some package depending on it: maybe StructuredOptimization?)
I suggest you try in a fresh environment, that should work.
… On 16. Mar 2022, at 10:06, Patrik Waldmann ***@***.***> wrote:
I only get v0.4.1 when I try to update.
—
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADJ6K2SU25GZ5D5FQSDCSDVAGQBTANCNFSM5QZ6ML5A>.
You are receiving this because you commented.
|
Yes I have StructuredOptimization installed. So the only way is to delete that one? |
It depends on what you need to do: StructuredOptimization is only compatible with ProximalAlgorithms < 0.5 at the moment (I’m not sure when/if it will updated, as I currently don’t have capacity for maintenance there).
If you want to try out the latest ProximalAlgorithms 0.5, then I suggest you do this in a new environment, where you can install its latest version (and not have StructuredOptimization at all there).
… On 16. Mar 2022, at 10:11, Patrik Waldmann ***@***.***> wrote:
Yes I have StructuredOptimization installed. So the only way is to delete that one?
—
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADJ6KZBTAXHC4WPMQHPE53VAGQSRANCNFSM5QZ6ML5A>.
You are receiving this because you commented.
|
I'm having problems that gamma becomes too low so I would very much like to try the minimum_gamma option. And this was not possible with earlier versions. |
I see. Is there any way you can formulate your problem directly for ProximalAlgorithms to consume, without going through StructuredOptimization? That I think would be the best attempt at validating what the issue is, whether it was fixed with earlier versions, or anything.
If the problem still persists with that, feel free to open a separate dedicated issue (this one appears to be resolved).
… On 16. Mar 2022, at 10:19, Patrik Waldmann ***@***.***> wrote:
I'm having problems that gamma becomes too low so I would very much like to try the minimum_gamma option. And this was not possible with earlier versions.
—
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADJ6K7PJVYGPHJZSFIPBRTVAGRRVANCNFSM5QZ6ML5A>.
You are receiving this because you commented.
|
Well, I now got another error with the update: MethodError: no method matching prox!(::Vector{Float64}, ::NormL1{Int64}, ::Vector{Float64}, ::Float64) |
Could you provide self-contained code snippet that generates the error? With minimal data that is (some small matrix, even random stuff) |
It is your Sparse Regression example in the documentation, straight off. |
Aha, it turned out that I had an old version of ProximalOperators also. Is it so that StucturedOptimization holds that one back also? Maybe some warnings regarding this. Anyway, the example works now. |
Ha! True, that’s a hard one to spot! Not sure how to best give a warning about this, given that there’s no dependency between the packages now. Definitely some hint in the documentation though. I’ll open an issue for that, it should be made clear. Anyhow, happy that things worked out |
I get an error when I try to run the Sparse Regression example in the documentation:
UndefVarError: FastForwardBackward not defined
getproperty(x::Module, f::Symbol) at Base.jl:35
top-level scope at ProxAlgLASSO.jl:47
eval at boot.jl:373 [inlined]
The text was updated successfully, but these errors were encountered: