Transposed Dataset

A matrix transpose swaps the rows and columns of a matrix, in other words it rotates it 90 degrees. The transposed dataset is a dataset adaptor that takes another dataset and performs the same function.

In other words, rows become columns and columns become rows.

This is useful when performing selects across columns instead of down rows.

The transposition operation is virtual, in other words no copy is made of the dataset.

Configuration

A new dataset of type transposed named <id> can be created as follows:

mldb.put("/v1/datasets/"+<id>, {
    "type": "transposed",
    "params": {
        "dataset": <Dataset (read-only)>
    }
})

with the following key-value definitions for params:

Field, Type, DefaultDescription

dataset
Dataset (read-only)

Dataset to transpose

See also