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
{{ message }}
Repository navigation
Non-metric MDS gives nonsense results on the Digits dataset #27028
I am running metric and nonmetric MDS on the Digits dataset, and obtain nonsense results with metric=False. At the same time, my understanding is that non-metric MDS is more flexible and should not yield worse results compared to metric MDS. Is my understanding wrong, or does it suggest some problems with the non-metric MDS implementation?
At the same time, my understanding is that non-metric MDS is more flexible
Yes, I would expect its solution space is a superset of metric MDS
and should not yield worse results compared to metric MDS
This I'm less confident about. It's flexibility and optimization strategy honestly may make it more liable to find "suboptimal" or "poor" embeddings since it "only" cares about ordinality of data.
I really am not sure whether this is just an example of how constrained systems can outperform under-constrained systems, or if there is something operatively incorrect about the non-metric MDS implementation, but I lean towards the prior.
I really am not sure whether this is just an example of how constrained systems can outperform under-constrained systems, or if there is something operatively incorrect about the non-metric MDS implementation, but I lean towards the prior.
No, I'm actually pretty sure it's the latter.
First, metric MDS takes 756 iterations to converge. Default is max_iter=300, but I checked with
What do you think @Micky774? To me the above is evidence that the optimisation is not working correctly.
Yeah at this point it definitely seems like something is wrong. I unfortunately don't have much extra bandwidth for this at the moment, but I will offer a review if anyone else would like to take a stab at this.
Activity
dkobak commentedon Aug 9, 2023
Maybe @NelleV would know what's going on here? She is the main author of the MDS class, it seems.
Micky774 commentedon Aug 11, 2023
Yes, I would expect its solution space is a superset of metric MDS
This I'm less confident about. It's flexibility and optimization strategy honestly may make it more liable to find "suboptimal" or "poor" embeddings since it "only" cares about ordinality of data.
I really am not sure whether this is just an example of how constrained systems can outperform under-constrained systems, or if there is something operatively incorrect about the non-metric MDS implementation, but I lean towards the prior.
dkobak commentedon Aug 11, 2023
No, I'm actually pretty sure it's the latter.
First, metric MDS takes 756 iterations to converge. Default is max_iter=300, but I checked with
But non-metric MDS stops after two iterations
Here is the full output:
This is very fishy. The loss goes up, so it stops the iterations.
Second, let's initialize non-metric optimiazation with the result of metric optimization:
Now it also converges in two iterations, but achieves much lower loss:
This is also very fishy -- that's 2x lower loss than the default optimization run.
dkobak commentedon Sep 6, 2023
What do you think @Micky774? To me the above is evidence that the optimisation is not working correctly.
dkobak commentedon Oct 8, 2023
May be related to #18933 but I'm not sure. CC @henrymartin1.
Micky774 commentedon Oct 11, 2023
Yeah at this point it definitely seems like something is wrong. I unfortunately don't have much extra bandwidth for this at the moment, but I will offer a review if anyone else would like to take a stab at this.
I would like to see this issue worked on first, then revisit this instance to determine if the bug persists.
Thank you for taking the time to advocate for this issue :)
dkobak commentedon Dec 20, 2024
Should be fixed in my #30514.