-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add demo SVM #98
base: master
Are you sure you want to change the base?
Add demo SVM #98
Conversation
Codecov ReportAll modified lines are covered by tests ✅ see 3 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
there's still more |
a = PGFPlots.Axis( | ||
[ | ||
PGFPlots.Plots.MatrixPlot(reshape(x, 28, 28); | ||
colormap = PGFPlots.ColorMaps.GrayMap())#, zmin = -700, zmax = 700)#, legendentry="computed"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok if I leave this one? In case we want to set the axis manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncomment what you use. add arguments to the function if you want to be able to change the functionality
For some reason, there seem to be a compat issue with DataFrames but it is not even in the deps of (examples) pkg> status --outdated
Status `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedOptimization\examples\Project.toml`
⌅ [54578032] ADNLPModels v0.4.0 (<v0.6.0) [compat]
⌅ [a4795742] NLPModels v0.19.2 (<v0.20.0) [compat]
[196f2941] RegularizedOptimization v0.1.0 `https://github.com/JuliaSmoothOptimizers/RegularizedOptimization.jl.git#master` [<v0.1.7], (<v0.2.2) But RegularizedOptimization does not even have a version 0.2.2. @dpo do you know where this could come from? |
After a little investigation this might be due to PGFPlots and MLDatasets: https://github.com/JuliaTeX/PGFPlots.jl/blob/195730644a706f3966f3e63279846fbf2ec3249d/Project.toml#L27 |
can PGFPlots be upgraded? |
I just tried but actually it should work because |
bf1ca76
to
619f0e2
Compare
I still don't understand the error. It works for me locally, even without Status `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedOptimization\examples\Project.toml`
⌅ [54578032] ADNLPModels v0.4.0
[0c46a032] DifferentialEquations v7.7.0
[eb30cadb] MLDatasets v0.7.9
⌅ [a4795742] NLPModels v0.19.2
[e01155f1] NLPModelsModifiers v0.6.5
[3b7a836e] PGFPlots v3.4.2
[a725b495] ProximalOperators v0.15.3
[196f2941] RegularizedOptimization v0.1.0 `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedOptimization`
[ea076b23] RegularizedProblems v0.1.0 `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedProblems`
[d4fd37fa] ShiftedProximalOperators v0.1.0 `C:\Users\Geoffroy Leconte\.julia\dev\ShiftedProximalOperators`
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated` |
run: | | ||
pkg_path = dirname(Base.find_package("RegularizedOptimization")) | ||
include(joinpath(pkg_path, "..", "examples", "demo-svm.jl")) | ||
shell: julia --project="examples" --color=yes {0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the step "Installing non registered dependencies" still necessary here? Could it be the source of the problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think RegularizedOptimization and ShiftedProximalOperators are still not registered.
I did pkg> activate examples
pkg> add ../RegularizedProblems.jl
pkg> add ../ShiftedProximalOperators.jl
pkg> dev .
pkg> instantiate and it seems ok. In the end, I get DataFrames 1.5. |
To debug, uncomment the "tmate" lines in the workflow file and ssh into the virtual machine to look around. |
Any news here? |
I could not make this work here, even though it works for me locally, I'm not sure what I should do. |
@geoffroyleconte Would you mind rebasing this and seeing if the problem went away? |
Co-authored-by: Dominique <[email protected]>
619f0e2
to
9081d6a
Compare
@geoffroyleconte Could you please try to undo the changes in the Project.toml files and play with them to see if you can make the error go away and determine what causes it? |
I can't find the issue for now, but I had this message when typing (examples) pkg> dev RegularizedOptimization
[ Info: Use `./RegularizedOptimization` to add or develop the local directory at `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedOptimization`.
Resolving package versions...
Updating `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedOptimization\examples\Project.toml`
[196f2941] ~ RegularizedOptimization v0.1.7 ⇒ v0.1.0 `C:\Users\Geoffroy Leconte\.julia\dev\RegularizedOptimization`
...
...
... I am not aware that the |
No description provided.