Class AbstractProjectionAlgorithm<R>

  • Type Parameters:
    R - Result type.
    All Implemented Interfaces:
    Algorithm
    Direct Known Subclasses:
    SNE, TSNE

    public abstract class AbstractProjectionAlgorithm<R>
    extends java.lang.Object
    implements Algorithm
    Abstract base class for projection algorithms.
    Since:
    0.7.5
    Author:
    Erich Schubert
    • Field Detail

      • keep

        private boolean keep
        Keep the original data relation.
      • KEEP_ID

        public static final OptionID KEEP_ID
        Flag to keep the original projection
    • Constructor Detail

      • AbstractProjectionAlgorithm

        public AbstractProjectionAlgorithm​(boolean keep)
        Constructor.
        Parameters:
        keep - Keep the original projection.
    • Method Detail

      • removePreviousRelation

        protected void removePreviousRelation​(Relation<?> relation)
        Remove the previous relation. Manually also log index statistics, as we may be removing indexes.
        Parameters:
        relation - Relation to remove