Skip to content

mds._smacof_single: tidy up and implementation details #11381

@asanakoy

Description

@asanakoy

Hi everyone,

I'm a bit puzzled about implementation of the SMACOF algorithm.
Especially in LL98-108 names of the variable a very confusing: disparities, similarities, sim, dis and disparities are used interchangeably, which make the code difficult to understand. This could be tided up.

I have several questions about implementation:

  1. Why disparities are multiplied by np.sqrt((n_samples * (n_samples - 1) / 2) / (disparities ** 2).sum()) (L107)?

  2. Could you please point on which theoretical derivations this implementation is based?

Maybe @NelleV can help?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions