qualia_core.datamodel package

Subpackages

Submodules

Module contents

class qualia_core.datamodel.DataModel(name: str, sets: Sets[T] | None = None)[source]

Bases: Generic[T]

class Sets(train: 'U | None' = None, valid: 'U | None' = None, test: 'U | None' = None)[source]

Bases: Generic[U]

train: U | None = None
valid: U | None = None
test: U | None = None
classmethod fieldnames() tuple[str, ...][source]
asdict() dict[str, U][source]
export(path: Path) None[source]
sets: Sets[T]
name: str
export() None[source]
import_sets(set_names: list[str], sets_cls: type[Sets[T]], importer: Callable[[Path], T | None]) None[source]
class qualia_core.datamodel.FeatureSample(features: List = None)[source]

Bases: object

get_raw_array()[source]
class qualia_core.datamodel.RawDataModel(name: str, sets: Sets[T] | None = None)[source]

Bases: DataModel[RawData]

sets: Sets[RawData]
import_sets(set_names: list[str] | None = None, sets_cls: type[DataModel.Sets[RawData]] = <class 'qualia_core.datamodel.RawDataModel.RawDataSets'>, importer: Callable[[Path], RawData | None] = <bound method RawData.import_data of <class 'qualia_core.datamodel.RawDataModel.RawData'>>) None[source]
class qualia_core.datamodel.TimeSample(t: float, sensors: list[qualia_core.datamodel.sensor.Sensor.Sensor] = <factory>)[source]

Bases: object

t: float
sensors: list[Sensor]
get_raw_array() list[ndarray[tuple[int, ...], dtype[float32]]][source]
class qualia_core.datamodel.WindowedSample(features: List = None)[source]

Bases: object

get_raw_array()[source]