Interface DimRedParams

Interface for the parameters used in dimensionality reduction algorithms.

Hierarchy

Properties

dimensionality: number

The desired dimensionality of the output data.

metric: ((a, b) => number | "precomputed")

Type declaration

    • (a, b): number | "precomputed"
    • The metric used to measure the distance between two points in the input data. Can be a function that takes two arrays of numbers and returns a number, or the string 'precomputed'.

      Parameters

      • a: number[]
      • b: number[]

      Returns number | "precomputed"

seed: number

The seed used to initialize the random number generator, if applicable.