"Hadamard" (Machine Learning Method)

Details & Suboptions

  • "Hadamard" is a linear dimensionality-reduction method that does not learn from the data. The method projects input data on a lower-dimensional space using a slice of a HadamardMatrix. This method attempts to approximate a random projection.
  • "Hadamard" is computationally efficient for datasets that have a large number of features; however, since there is no learning, the embedding will not be as good as other methods.
  • The following shows two-dimensional embeddings learned by the "Hadamard" method applied to the benchmark datasets Fisher's Irises, MNIST and FashionMNIST:
  • The "Hadamard" method nearly preserves the pairwise distances of high-dimensional data, similarly to a random projection.
  • DimensionReduce[,Method"Hadamard", FeatureExtractor"Minimal"] should be used to take full advantage of the computational efficiency of this method.
  • The suboption Method can be used to set the type of the matrix manipulation. Method"Matrix" should only be used for datasets with a small number of inputs and reduced features.
  • The following suboptions can be given:
  • MethodAutomaticmatrix computation method
  • Possible settings for Method include:
  • "Matrix"constructs the Hadamard matrix explicitly
    "Transform"uses a direct transformation for the reduction

Examples

open allclose all

Basic Examples  (1)

Reduce the dimension of a high-dimensional vector using the "Hadamard" method efficiently:

Options  (1)

Method  (1)

Compares the performance of "Hadamard" with different suboptions on a high-dimensional vector:

Applications  (1)

Dataset Visualization  (1)

Load the Fisher Iris dataset from ExampleData:

Generate a reducer function using "Hadamard" with the features of each example:

Group the examples by their species:

Reduce the dimension of the features: