Record Class Embedding.EmbeddedData

java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.utils.Embedding.EmbeddedData
Record Components:
originalData - The original dataset before transformation.
embeddedData - The embedded dataset after applying transformations.
embedding - A mapping from original variable indices to their corresponding transformed indices.
Enclosing class:
Embedding

public static record Embedding.EmbeddedData(DataSet originalData, DataSet embeddedData, Map<Integer,List<Integer>> embedding) extends Record
Represents the embedded data result, holding the original dataset, the transformed embedded dataset, and a mapping between the indices of original variables and their corresponding transformed variables.

This record is a lightweight container for storing: - The original dataset (`originalData`) before transformation. - The embedded dataset (`embeddedData`) after applying transformations such as basis expansions and scaling. - A mapping (`embedding`) that associates each original variable with its expanded or encoded indices in the embedded dataset.

This class is primarily used to encapsulate the result of a dataset transformation and provide easy access to both the raw and embedded data representations, as well as the transformation metadata.

  • Constructor Details

    • EmbeddedData

      public EmbeddedData(DataSet originalData, DataSet embeddedData, Map<Integer,List<Integer>> embedding)
      Creates an instance of a EmbeddedData record class.
      Parameters:
      originalData - the value for the originalData record component
      embeddedData - the value for the embeddedData record component
      embedding - the value for the embedding record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • originalData

      public DataSet originalData()
      Returns the value of the originalData record component.
      Returns:
      the value of the originalData record component
    • embeddedData

      public DataSet embeddedData()
      Returns the value of the embeddedData record component.
      Returns:
      the value of the embeddedData record component
    • embedding

      public Map<Integer,List<Integer>> embedding()
      Returns the value of the embedding record component.
      Returns:
      the value of the embedding record component