flambe.dataset.dataset

Module Contents

class flambe.dataset.dataset.Dataset[source]

Bases: flambe.Component

Base Dataset interface.

Dataset objects offer the main interface to loading data into the experiment pipepine. Dataset objects have three attributes: train, dev, and test, each pointing to a list of examples.

Note that Datasets should also be “immutable”, and as such, __setitem__ and __delitem__ will raise an error. Although this does not mean that the object will not be mutated in other ways, it should help avoid issues now and then.

train :Sequence[Sequence][source]

Returns the training data as a sequence of examples.

val :Sequence[Sequence][source]

Returns the validation data as a sequence of examples.

test :Sequence[Sequence][source]

Returns the test data as a sequence of examples.

__setitem__(self)[source]

Raise an error.

__delitem__(self)[source]

Raise an error.