Package edu.cmu.tetrad.search.utils
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theembeddedDatarecord component.Returns the value of theembeddingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmbeddedData
public EmbeddedData(DataSet originalData, DataSet embeddedData, Map<Integer, List<Integer>> embedding) Creates an instance of aEmbeddedDatarecord class.- Parameters:
originalData- the value for theoriginalDatarecord componentembeddedData- the value for theembeddedDatarecord componentembedding- the value for theembeddingrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
originalData
Returns the value of theoriginalDatarecord component.- Returns:
- the value of the
originalDatarecord component
-
embeddedData
Returns the value of theembeddedDatarecord component.- Returns:
- the value of the
embeddedDatarecord component
-
embedding
Returns the value of theembeddingrecord component.- Returns:
- the value of the
embeddingrecord component
-