You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See this issue.
I tried using this on some data with superpixels, and it seemed to work well, though I'm still not sure how to reliably test it on real data. All I know is:
the score didn't go down when I started weighting nodes
the score went way down when I tried assigning weights at random
Hi, I've also implemented weighted loss, but without breaking the API again.
I've implemented a class Label, which stores full and weak labelling (I'm working on LatentSSVM and I have different losses for full and weak labels), and it also stores weights.
Weighting is a very important feature (e.g. when you work with superpixels in semantic segmentation tasks) but I don't like the idea to pass X to loss function, it's not intuitive.
Thanks
@kondra thank you for your feedback. would you mind sharing some code?
Why don't you like the idea of having x in the loss? In principal everything is conditioned on x, right? In particular, the graph structure is encoded there.
@amueller because in common formulation of ssvm there is no x in loss ^_^
It's ok to pass x to the loss.
But may be we can implement this in a backward compatible way? (e.g. make x as a third parameter with default value None)
Thanks
Yes, it should be as backward compatible as possible.
You are right, there is no x in the loss in the papers, but I guess that is only for convenient notation.I don't see a reason why the loss should not be able to include x.
The reason will be displayed to describe this comment to others. Learn more.
(woopsie, I used the wrong link to update a PR, sorry!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See this issue.
I tried using this on some data with superpixels, and it seemed to work well, though I'm still not sure how to reliably test it on real data. All I know is: