Skip to content

BrainScript Reader block.1

Allison Brucker (Resources Online) edited this page May 30, 2017 · 2 revisions

This page has migrated to our new site. Please update any bookmarks.

The reader block is used for all types of readers and the readerType parameter determines which reader to use. Each reader implements the same IDataReader interface. Many parameters in the reader block are shared across different types of readers. Some are specific to a particular reader. A simple reader block using the CNTKTextFormatReader could look like this:

reader = [
    readerType = "CNTKTextFormatReader"
    file = "$DataDir$/Train-28x28_cntk_text.txt"
    input = [
        features = [
            dim = 784
            format = "dense"
        ]
        labels = [
            dim = 10
            format = "dense"
        ]
    ]
]

You can explore different reader settings in the configurations of the Examples. For details regarding specific readers see the corresponding wiki pages:

Clone this wiki locally