Hub
Pricing About
ComponentComponent

Dimensionality Reduction (LDA)

knime profile image
Versionv1.0Latest, created on 
Oct 20, 2023 1:28 PM
Drag & drop
Like
Use or download
This component reduces the number of columns in the input data by linear discriminant analysis. Linear discriminant analysis is based on separating two or more classes in the data. Therefore, one string column has to be selected as the target column. Numeric columns are projected into their linear combinations, linear discriminants, that best separate the different target classes. This component can be used for dimensionality reduction, for example, before training a machine learning model. Linear discriminant analysis also works as a classifier: the linear discriminants separate the normally distributed data into two or more target classes. Linear discriminant analysis can only create as many linear discriminants as there are target classes minus one, or if smaller, the number of numeric columns in the input data. Linear discriminant analysis may fail due to high dimensional input data and few target classes. In such case, it is recommended to first reduce dimensions by PCA, and then apply linear discriminant analysis to the principal components. This method is applied inside this component. Notice that the input data of the component have to be normalized, and missing value handling is recommended. If you want to apply the dimensionality reduction model to new data, for example, a test set, the LDA model is available in the table in the second output port of the node. If the LDA model cannot be applied directly, the table also contains a PCA model, normalizer model, and the number of dimensions for PCA. You are supposed to apply the PCA model to the new data using the number of dimensions given in the “PCA-dimensions” column, and then use the normalizer model to normalize the reduced dimensions, i.e. principal components. Finally, you can then apply LDA to the reduced, normalized dimensions. Required extensions: -KNIME Ensemble Learning Wrappers (https://hub.knime.com/knime/extensions/org.knime.features.ensembles/latest) -KNIME Data Generation (https://hub.knime.com/knime/extensions/org.knime.features.datageneration/latest) -KNIME Math Expression (JEP) (https://hub.knime.com/knime/extensions/org.knime.features.ext.jep/latest) -KNIME Quick Forms (https://hub.knime.com/knime/extensions/org.knime.features.js.quickforms/latest) -KNIME Statistics Nodes (Labs) (https://hub.knime.com/knime/extensions/org.knime.features.stats2/latest)

Component details

Input ports
  1. Type: Table
    Data to reduce dimensions
    Data that contain at least one string column and one numeric column One string column is selected as the target column Numeric columns in the data will be reduced to linear discriminants Numeric columns have to be normalized
Output ports
  1. Type: Table
    Data with numeric columns reduced to linear discriminants
    Linear discriminants together with the original string columns in the input data
  2. Type: Table
    Model(s)
    LDA model Additional output columns, if LDA cannot be applied directly: - PCA model to apply to the data before LDA - Normalizer model to apply to the principal components before applying LDA - Number of dimensions for PCA

Used extensions & nodes

Created with KNIME Analytics Platform version 4.2.0
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime
  • Go to item
    KNIME Data GenerationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime
  • Go to item
    KNIME Ensemble Learning WrappersTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime
  • Go to item
    KNIME Math Expression (JEP)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime
  • Go to item
    KNIME Statistics NodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.2.0

    knime profile image
    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits