Skip to main content

Matrix to ExampleSet

Synopsis

Transforms a matrix object into a regular ExampleSet.

Description

Transforms a matrix object into a regular ExampleSet. The resulting ExampleSet can be either an exact representation of the original matrix or a list of all attribute pairs and the corresponding matrix entries.

Input

matrix

This input port expects a matrix result. Currently supported types are either Numerical Matrixes, e.g., the result of the Correlation Matrix Operator, or an ANOVA Matrix, the result of the Operator with the same name.

Output

exampleset

The ExampleSet that corresponds to the input matrix. The column names are set as attribute names and row names are set as a new id attribute. In case a pairwise list is returned (see parameter description below) the resulting ExampleSet consists of three attributes: the names of the attributes and the value of the corresponding matrix entry.

original

The original matrix.

Parameters

Pairwise list

This parameter indicates if the returned ExampleSet should have the same dimension as the input matrix or should be returned as a list.

Symmetric matrix

This parameter indicates if if the provided matrix is symmetric and only the upper diagonal entries should be returned. This only works if a quadratic Numerical Matrix is delivered at the input port. Be aware that there is no further check for symmetrie.