adaptation

Module: environments.live.adaptation

Script for running threshold adaptation

Inheritance diagram for pySPACE.environments.live.adaptation:

Inheritance diagram of pySPACE.environments.live.adaptation

LiveAdaptor

class pySPACE.environments.live.adaptation.LiveAdaptor[source]

Bases: object

The class that performs the threshold to a given cost function in order to scale the relation of false positives to false negatives.

Class Components Summary

adaptation_fct(key) A function that is executed in a separate thread
copy_flow(key)
is_adaptation_active() Returns whether adaptation is finished or still running
load_model(directory, datasets) Load only the model
prepare_adaptation(adaptation_files, datasets) Prepares the threshold adaptation.
queue_filler(data, label, key)
set_eeg_stream_manager(stream_manager)
start_adaptation() Adapts the threshold to a specified error function
stop_adaptation() Force the end of the adaptation
stream_data(key) A function that forwards the data to the worker threads
__init__()[source]
set_eeg_stream_manager(stream_manager)[source]
load_model(directory, datasets)[source]

Load only the model

copy_flow(key)[source]
prepare_adaptation(adaptation_files, datasets, nullmarker_stride_ms=None)[source]

Prepares the threshold adaptation.

queue_filler(data, label, key)[source]
adaptation_fct(key)[source]

A function that is executed in a separate thread

stream_data(key)[source]

A function that forwards the data to the worker threads

start_adaptation()[source]

Adapts the threshold to a specified error function

is_adaptation_active()[source]

Returns whether adaptation is finished or still running

stop_adaptation()[source]

Force the end of the adaptation

__weakref__

list of weak references to the object (if defined)